Changeset 245950 in webkit
- Timestamp:
- May 30, 2019, 10:50:50 PM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 18 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/page/PageOverlayController.cpp (modified) (3 diffs)
-
WebCore/page/PageOverlayController.h (modified) (1 diff)
-
WebCore/page/linux/ResourceUsageOverlayLinux.cpp (modified) (1 diff)
-
WebCore/page/mac/ServicesOverlayController.h (modified) (1 diff)
-
WebCore/page/mac/ServicesOverlayController.mm (modified) (1 diff)
-
WebCore/platform/graphics/GraphicsLayer.cpp (modified) (1 diff)
-
WebCore/platform/graphics/GraphicsLayer.h (modified) (2 diffs)
-
WebCore/platform/graphics/GraphicsLayerClient.h (modified) (2 diffs)
-
WebCore/rendering/RenderLayerBacking.cpp (modified) (11 diffs)
-
WebCore/rendering/RenderLayerBacking.h (modified) (3 diffs)
-
WebCore/rendering/RenderLayerCompositor.cpp (modified) (1 diff)
-
WebCore/rendering/RenderLayerCompositor.h (modified) (1 diff)
-
WebKitLegacy/win/ChangeLog (modified) (1 diff)
-
WebKitLegacy/win/WebCoreSupport/AcceleratedCompositingContext.cpp (modified) (1 diff)
-
WebKitLegacy/win/WebCoreSupport/AcceleratedCompositingContext.h (modified) (1 diff)
-
WebKitLegacy/win/WebView.cpp (modified) (1 diff)
-
WebKitLegacy/win/WebView.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r245948 r245950 1 2019-05-30 Simon Fraser <simon.fraser@apple.com> 2 3 Use an OptionSet<> for GraphicsLayerPaintingPhase 4 https://bugs.webkit.org/show_bug.cgi?id=198404 5 6 Reviewed by Tim Horton. 7 8 Replace GraphicsLayerPaintingPhase with OptionSet<GraphicsLayerPaintingPhase>. 9 10 No behavior change. 11 12 * page/PageOverlayController.cpp: 13 (WebCore::PageOverlayController::setPageOverlayNeedsDisplay): 14 (WebCore::PageOverlayController::paintContents): 15 (WebCore::PageOverlayController::notifyFlushRequired): 16 * page/PageOverlayController.h: 17 * page/linux/ResourceUsageOverlayLinux.cpp: 18 * page/mac/ServicesOverlayController.h: 19 * page/mac/ServicesOverlayController.mm: 20 (WebCore::ServicesOverlayController::Highlight::paintContents): 21 * platform/graphics/GraphicsLayer.cpp: 22 (WebCore::GraphicsLayer::dumpProperties const): 23 * platform/graphics/GraphicsLayer.h: 24 (WebCore::GraphicsLayer::paintingPhase const): 25 (WebCore::GraphicsLayer::setPaintingPhase): 26 * platform/graphics/GraphicsLayerClient.h: 27 (WebCore::GraphicsLayerClient::paintContents): 28 * rendering/RenderLayerBacking.cpp: 29 (WebCore::RenderLayerBacking::updateForegroundLayer): 30 (WebCore::RenderLayerBacking::updateBackgroundLayer): 31 (WebCore::RenderLayerBacking::updateMaskingLayer): 32 (WebCore::RenderLayerBacking::updateChildClippingStrategy): 33 (WebCore::RenderLayerBacking::updateScrollingLayers): 34 (WebCore::RenderLayerBacking::paintingPhaseForPrimaryLayer const): 35 (WebCore::RenderLayerBacking::paintIntoLayer): 36 (WebCore::RenderLayerBacking::paintContents): 37 * rendering/RenderLayerBacking.h: 38 * rendering/RenderLayerCompositor.cpp: 39 (WebCore::RenderLayerCompositor::paintContents): 40 * rendering/RenderLayerCompositor.h: 41 1 42 2019-05-30 Youenn Fablet <youenn@apple.com> 2 43 -
trunk/Source/WebCore/page/PageOverlayController.cpp
r244182 r245950 251 251 } 252 252 253 void PageOverlayController::setPageOverlayNeedsDisplay(PageOverlay& overlay, const WebCore::IntRect& dirtyRect)253 void PageOverlayController::setPageOverlayNeedsDisplay(PageOverlay& overlay, const IntRect& dirtyRect) 254 254 { 255 255 ASSERT(m_pageOverlays.contains(&overlay)); … … 392 392 } 393 393 394 void PageOverlayController::paintContents(const WebCore::GraphicsLayer* graphicsLayer, WebCore::GraphicsContext& graphicsContext, WebCore::GraphicsLayerPaintingPhase, const WebCore::FloatRect& clipRect, GraphicsLayerPaintBehavior)394 void PageOverlayController::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& graphicsContext, OptionSet<GraphicsLayerPaintingPhase>, const FloatRect& clipRect, GraphicsLayerPaintBehavior) 395 395 { 396 396 for (auto& overlayAndGraphicsLayer : m_overlayGraphicsLayers) { … … 411 411 } 412 412 413 void PageOverlayController::notifyFlushRequired(const WebCore::GraphicsLayer*)413 void PageOverlayController::notifyFlushRequired(const GraphicsLayer*) 414 414 { 415 415 m_page.renderingUpdateScheduler().scheduleRenderingUpdate(); -
trunk/Source/WebCore/page/PageOverlayController.h
r241978 r245950 94 94 // GraphicsLayerClient 95 95 void notifyFlushRequired(const GraphicsLayer*) override; 96 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const FloatRect& clipRect, GraphicsLayerPaintBehavior) override;96 void paintContents(const GraphicsLayer*, GraphicsContext&, OptionSet<GraphicsLayerPaintingPhase>, const FloatRect& clipRect, GraphicsLayerPaintBehavior) override; 97 97 float deviceScaleFactor() const override; 98 98 bool shouldSkipLayerInDump(const GraphicsLayer*, LayerTreeAsTextBehavior) const override; -
trunk/Source/WebCore/page/linux/ResourceUsageOverlayLinux.cpp
r245504 r245950 85 85 86 86 private: 87 void paintContents(const GraphicsLayer*, GraphicsContext& context, GraphicsLayerPaintingPhase, const FloatRect& clip, GraphicsLayerPaintBehavior) override87 void paintContents(const GraphicsLayer*, GraphicsContext& context, OptionSet<GraphicsLayerPaintingPhase>, const FloatRect& clip, GraphicsLayerPaintBehavior) override 88 88 { 89 89 GraphicsContextStateSaver stateSaver(context); -
trunk/Source/WebCore/page/mac/ServicesOverlayController.h
r236016 r245950 83 83 // GraphicsLayerClient 84 84 void notifyFlushRequired(const GraphicsLayer*) override; 85 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const FloatRect& inClip, GraphicsLayerPaintBehavior) override;85 void paintContents(const GraphicsLayer*, GraphicsContext&, OptionSet<GraphicsLayerPaintingPhase>, const FloatRect& inClip, GraphicsLayerPaintBehavior) override; 86 86 float deviceScaleFactor() const override; 87 87 -
trunk/Source/WebCore/page/mac/ServicesOverlayController.mm
r244182 r245950 125 125 } 126 126 127 void ServicesOverlayController::Highlight::paintContents(const GraphicsLayer*, GraphicsContext& graphicsContext, GraphicsLayerPaintingPhase, const FloatRect&, GraphicsLayerPaintBehavior)127 void ServicesOverlayController::Highlight::paintContents(const GraphicsLayer*, GraphicsContext& graphicsContext, OptionSet<GraphicsLayerPaintingPhase>, const FloatRect&, GraphicsLayerPaintBehavior) 128 128 { 129 129 if (!DataDetectorsLibrary()) -
trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp
r245786 r245950 936 936 ts << indent << "(paintingPhases\n"; 937 937 TextStream::IndentScope indentScope(ts); 938 if (paintingPhase() & GraphicsLayerPaintBackground)938 if (paintingPhase().contains(GraphicsLayerPaintingPhase::Background)) 939 939 ts << indent << "GraphicsLayerPaintBackground\n"; 940 940 941 if (paintingPhase() & GraphicsLayerPaintForeground)941 if (paintingPhase().contains(GraphicsLayerPaintingPhase::Foreground)) 942 942 ts << indent << "GraphicsLayerPaintForeground\n"; 943 943 944 if (paintingPhase() & GraphicsLayerPaintMask)944 if (paintingPhase().contains(GraphicsLayerPaintingPhase::Mask)) 945 945 ts << indent << "GraphicsLayerPaintMask\n"; 946 946 947 if (paintingPhase() & GraphicsLayerPaintChildClippingMask)947 if (paintingPhase().contains(GraphicsLayerPaintingPhase::ChildClippingMask)) 948 948 ts << indent << "GraphicsLayerPaintChildClippingMask\n"; 949 949 950 if (paintingPhase() & GraphicsLayerPaintOverflowContents)950 if (paintingPhase().contains(GraphicsLayerPaintingPhase::OverflowContents)) 951 951 ts << indent << "GraphicsLayerPaintOverflowContents\n"; 952 952 953 if (paintingPhase() & GraphicsLayerPaintCompositedScroll)953 if (paintingPhase().contains(GraphicsLayerPaintingPhase::CompositedScroll)) 954 954 ts << indent << "GraphicsLayerPaintCompositedScroll\n"; 955 955 -
trunk/Source/WebCore/platform/graphics/GraphicsLayer.h
r245786 r245950 415 415 416 416 // Some GraphicsLayers paint only the foreground or the background content 417 GraphicsLayerPaintingPhasepaintingPhase() const { return m_paintingPhase; }418 void setPaintingPhase( GraphicsLayerPaintingPhasephase) { m_paintingPhase = phase; }417 OptionSet<GraphicsLayerPaintingPhase> paintingPhase() const { return m_paintingPhase; } 418 void setPaintingPhase(OptionSet<GraphicsLayerPaintingPhase> phase) { m_paintingPhase = phase; } 419 419 420 420 enum ShouldClipToLayer { … … 692 692 const Type m_type; 693 693 CustomAppearance m_customAppearance { CustomAppearance::None }; 694 GraphicsLayerPaintingPhase m_paintingPhase { GraphicsLayerPaintAllWithOverflowClip};694 OptionSet<GraphicsLayerPaintingPhase> m_paintingPhase { GraphicsLayerPaintingPhase::Foreground, GraphicsLayerPaintingPhase::Background }; 695 695 CompositingCoordinatesOrientation m_contentsOrientation { CompositingCoordinatesOrientation::TopDown }; // affects orientation of layer contents 696 696 -
trunk/Source/WebCore/platform/graphics/GraphicsLayerClient.h
r243674 r245950 39 39 class TransformationMatrix; 40 40 41 enum GraphicsLayerPaintingPhaseFlags { 42 GraphicsLayerPaintBackground = 1 << 0, 43 GraphicsLayerPaintForeground = 1 << 1, 44 GraphicsLayerPaintMask = 1 << 2, 45 GraphicsLayerPaintClipPath = 1 << 3, 46 GraphicsLayerPaintOverflowContents = 1 << 4, 47 GraphicsLayerPaintCompositedScroll = 1 << 5, 48 GraphicsLayerPaintChildClippingMask = 1 << 6, 49 GraphicsLayerPaintAllWithOverflowClip = GraphicsLayerPaintBackground | GraphicsLayerPaintForeground 41 enum class GraphicsLayerPaintingPhase { 42 Background = 1 << 0, 43 Foreground = 1 << 1, 44 Mask = 1 << 2, 45 ClipPath = 1 << 3, 46 OverflowContents = 1 << 4, 47 CompositedScroll = 1 << 5, 48 ChildClippingMask = 1 << 6, 50 49 }; 51 typedef uint8_t GraphicsLayerPaintingPhase;52 50 53 51 enum AnimatedPropertyID { … … 103 101 virtual void notifyFlushBeforeDisplayRefresh(const GraphicsLayer*) { } 104 102 105 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const FloatRect& /* inClip */, GraphicsLayerPaintBehavior) { }103 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, OptionSet<GraphicsLayerPaintingPhase>, const FloatRect& /* inClip */, GraphicsLayerPaintBehavior) { } 106 104 virtual void didChangePlatformLayerForLayer(const GraphicsLayer*) { } 107 105 -
trunk/Source/WebCore/rendering/RenderLayerBacking.cpp
r245837 r245950 1710 1710 m_foregroundLayer = createGraphicsLayer(layerName); 1711 1711 m_foregroundLayer->setDrawsContent(true); 1712 m_foregroundLayer->setPaintingPhase( GraphicsLayerPaintForeground);1712 m_foregroundLayer->setPaintingPhase({ GraphicsLayerPaintingPhase::Foreground }); 1713 1713 layerChanged = true; 1714 1714 } … … 1736 1736 m_backgroundLayer->setDrawsContent(true); 1737 1737 m_backgroundLayer->setAnchorPoint(FloatPoint3D()); 1738 m_backgroundLayer->setPaintingPhase( GraphicsLayerPaintBackground);1738 m_backgroundLayer->setPaintingPhase({ GraphicsLayerPaintingPhase::Background }); 1739 1739 layerChanged = true; 1740 1740 } … … 1772 1772 bool layerChanged = false; 1773 1773 if (hasMask || hasClipPath) { 1774 GraphicsLayerPaintingPhase maskPhases = 0;1774 OptionSet<GraphicsLayerPaintingPhase> maskPhases; 1775 1775 if (hasMask) 1776 maskPhases = GraphicsLayerPaint Mask;1776 maskPhases = GraphicsLayerPaintingPhase::Mask; 1777 1777 1778 1778 if (hasClipPath) { 1779 1779 // If we have a mask, we need to paint the combined clip-path and mask into the mask layer. 1780 1780 if (hasMask || renderer().style().clipPath()->type() == ClipPathOperation::Reference || !GraphicsLayer::supportsLayerType(GraphicsLayer::Type::Shape)) 1781 maskPhases |= GraphicsLayerPaintClipPath;1782 } 1783 1784 bool paintsContent = maskPhases;1781 maskPhases.add(GraphicsLayerPaintingPhase::ClipPath); 1782 } 1783 1784 bool paintsContent = !maskPhases.isEmpty(); 1785 1785 GraphicsLayer::Type requiredLayerType = paintsContent ? GraphicsLayer::Type::Normal : GraphicsLayer::Type::Shape; 1786 1786 if (m_maskLayer && m_maskLayer->type() != requiredLayerType) { … … 1826 1826 m_childClippingMaskLayer = createGraphicsLayer("child clipping mask"); 1827 1827 m_childClippingMaskLayer->setDrawsContent(true); 1828 m_childClippingMaskLayer->setPaintingPhase( GraphicsLayerPaintChildClippingMask);1828 m_childClippingMaskLayer->setPaintingPhase({ GraphicsLayerPaintingPhase::ChildClippingMask }); 1829 1829 clippingLayer()->setMaskLayer(m_childClippingMaskLayer.copyRef()); 1830 1830 } … … 1857 1857 m_scrolledContentsLayer->setAnchorPoint({ }); 1858 1858 1859 GraphicsLayerPaintingPhase paintPhase = GraphicsLayerPaintOverflowContents | GraphicsLayerPaintCompositedScroll;1859 OptionSet<GraphicsLayerPaintingPhase> paintPhases = { GraphicsLayerPaintingPhase::OverflowContents, GraphicsLayerPaintingPhase::CompositedScroll }; 1860 1860 if (!m_foregroundLayer) 1861 paintPhase |= GraphicsLayerPaintForeground;1862 m_scrolledContentsLayer->setPaintingPhase(paintPhase );1861 paintPhases.add(GraphicsLayerPaintingPhase::Foreground); 1862 m_scrolledContentsLayer->setPaintingPhase(paintPhases); 1863 1863 m_scrollContainerLayer->addChild(*m_scrolledContentsLayer); 1864 1864 } else { … … 1940 1940 } 1941 1941 1942 GraphicsLayerPaintingPhaseRenderLayerBacking::paintingPhaseForPrimaryLayer() const1943 { 1944 unsigned phase = 0;1942 OptionSet<GraphicsLayerPaintingPhase> RenderLayerBacking::paintingPhaseForPrimaryLayer() const 1943 { 1944 OptionSet<GraphicsLayerPaintingPhase> phases; 1945 1945 if (!m_backgroundLayer) 1946 phase |= GraphicsLayerPaintBackground;1946 phases.add(GraphicsLayerPaintingPhase::Background); 1947 1947 if (!m_foregroundLayer) 1948 phase |= GraphicsLayerPaintForeground;1948 phases.add(GraphicsLayerPaintingPhase::Foreground); 1949 1949 1950 1950 if (m_scrolledContentsLayer) { 1951 phase &= ~GraphicsLayerPaintForeground;1952 phase |= GraphicsLayerPaintCompositedScroll;1953 } 1954 1955 return static_cast<GraphicsLayerPaintingPhase>(phase);1951 phases.remove(GraphicsLayerPaintingPhase::Foreground); 1952 phases.add(GraphicsLayerPaintingPhase::CompositedScroll); 1953 } 1954 1955 return phases; 1956 1956 } 1957 1957 … … 2647 2647 void RenderLayerBacking::paintIntoLayer(const GraphicsLayer* graphicsLayer, GraphicsContext& context, 2648 2648 const IntRect& paintDirtyRect, // In the coords of rootLayer. 2649 OptionSet<PaintBehavior> paintBehavior, GraphicsLayerPaintingPhasepaintingPhase)2650 { 2651 if ((paintsIntoWindow() || paintsIntoCompositedAncestor()) && paintingPhase != GraphicsLayerPaintChildClippingMask) {2649 OptionSet<PaintBehavior> paintBehavior, OptionSet<GraphicsLayerPaintingPhase> paintingPhase) 2650 { 2651 if ((paintsIntoWindow() || paintsIntoCompositedAncestor()) && paintingPhase != OptionSet<GraphicsLayerPaintingPhase>(GraphicsLayerPaintingPhase::ChildClippingMask)) { 2652 2652 #if !PLATFORM(IOS_FAMILY) && !OS(WINDOWS) 2653 2653 // FIXME: Looks like the CALayer tree is out of sync with the GraphicsLayer heirarchy … … 2660 2660 2661 2661 OptionSet<RenderLayer::PaintLayerFlag> paintFlags; 2662 if (paintingPhase & GraphicsLayerPaintBackground)2662 if (paintingPhase.contains(GraphicsLayerPaintingPhase::Background)) 2663 2663 paintFlags.add(RenderLayer::PaintLayerPaintingCompositingBackgroundPhase); 2664 if (paintingPhase & GraphicsLayerPaintForeground)2664 if (paintingPhase.contains(GraphicsLayerPaintingPhase::Foreground)) 2665 2665 paintFlags.add(RenderLayer::PaintLayerPaintingCompositingForegroundPhase); 2666 if (paintingPhase & GraphicsLayerPaintMask)2666 if (paintingPhase.contains(GraphicsLayerPaintingPhase::Mask)) 2667 2667 paintFlags.add(RenderLayer::PaintLayerPaintingCompositingMaskPhase); 2668 if (paintingPhase & GraphicsLayerPaintClipPath)2668 if (paintingPhase.contains(GraphicsLayerPaintingPhase::ClipPath)) 2669 2669 paintFlags.add(RenderLayer::PaintLayerPaintingCompositingClipPathPhase); 2670 if (paintingPhase & GraphicsLayerPaintChildClippingMask)2670 if (paintingPhase.contains(GraphicsLayerPaintingPhase::ChildClippingMask)) 2671 2671 paintFlags.add(RenderLayer::PaintLayerPaintingChildClippingMaskPhase); 2672 if (paintingPhase & GraphicsLayerPaintOverflowContents)2672 if (paintingPhase.contains(GraphicsLayerPaintingPhase::OverflowContents)) 2673 2673 paintFlags.add(RenderLayer::PaintLayerPaintingOverflowContents); 2674 if (paintingPhase & GraphicsLayerPaintCompositedScroll)2674 if (paintingPhase.contains(GraphicsLayerPaintingPhase::CompositedScroll)) 2675 2675 paintFlags.add(RenderLayer::PaintLayerPaintingCompositingScrollingPhase); 2676 2676 … … 2719 2719 RenderLayer::PaintLayerPaintingCompositingForegroundPhase }; 2720 2720 2721 if (paintingPhase & GraphicsLayerPaintOverflowContents)2721 if (paintingPhase.contains(GraphicsLayerPaintingPhase::OverflowContents)) 2722 2722 sharingLayerPaintFlags.add(RenderLayer::PaintLayerPaintingOverflowContents); 2723 2723 … … 2730 2730 2731 2731 // Up-call from compositing layer drawing callback. 2732 void RenderLayerBacking::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& context, GraphicsLayerPaintingPhasepaintingPhase, const FloatRect& clip, GraphicsLayerPaintBehavior layerPaintBehavior)2732 void RenderLayerBacking::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& context, OptionSet<GraphicsLayerPaintingPhase> paintingPhase, const FloatRect& clip, GraphicsLayerPaintBehavior layerPaintBehavior) 2733 2733 { 2734 2734 #ifndef NDEBUG … … 2755 2755 || graphicsLayer == m_scrolledContentsLayer.get()) { 2756 2756 2757 if (! (paintingPhase & GraphicsLayerPaintOverflowContents))2757 if (!paintingPhase.contains(GraphicsLayerPaintingPhase::OverflowContents)) 2758 2758 dirtyRect.intersect(enclosingIntRect(compositedBoundsIncludingMargin())); 2759 2759 -
trunk/Source/WebCore/rendering/RenderLayerBacking.h
r245207 r245950 236 236 void notifyFlushBeforeDisplayRefresh(const GraphicsLayer*) override; 237 237 238 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const FloatRect& clip, GraphicsLayerPaintBehavior) override;238 void paintContents(const GraphicsLayer*, GraphicsContext&, OptionSet<GraphicsLayerPaintingPhase>, const FloatRect& clip, GraphicsLayerPaintBehavior) override; 239 239 240 240 float deviceScaleFactor() const override; … … 334 334 void setBackgroundLayerPaintsFixedRootBackground(bool); 335 335 336 GraphicsLayerPaintingPhasepaintingPhaseForPrimaryLayer() const;336 OptionSet<GraphicsLayerPaintingPhase> paintingPhaseForPrimaryLayer() const; 337 337 338 338 LayoutSize contentOffsetInCompositingLayer() const; … … 386 386 GraphicsLayer* tileCacheFlatteningLayer() const { return m_isFrameLayerWithTiledBacking ? m_childContainmentLayer.get() : nullptr; } 387 387 388 void paintIntoLayer(const GraphicsLayer*, GraphicsContext&, const IntRect& paintDirtyRect, OptionSet<PaintBehavior>, GraphicsLayerPaintingPhase);388 void paintIntoLayer(const GraphicsLayer*, GraphicsContext&, const IntRect& paintDirtyRect, OptionSet<PaintBehavior>, OptionSet<GraphicsLayerPaintingPhase>); 389 389 390 390 static CSSPropertyID graphicsLayerToCSSProperty(AnimatedPropertyID); -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r245854 r245950 3275 3275 } 3276 3276 3277 void RenderLayerCompositor::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& context, GraphicsLayerPaintingPhase, const FloatRect& clip, GraphicsLayerPaintBehavior)3277 void RenderLayerCompositor::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& context, OptionSet<GraphicsLayerPaintingPhase>, const FloatRect& clip, GraphicsLayerPaintBehavior) 3278 3278 { 3279 3279 #if PLATFORM(MAC) -
trunk/Source/WebCore/rendering/RenderLayerCompositor.h
r245772 r245950 378 378 // GraphicsLayerClient implementation 379 379 void notifyFlushRequired(const GraphicsLayer*) override; 380 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const FloatRect&, GraphicsLayerPaintBehavior) override;380 void paintContents(const GraphicsLayer*, GraphicsContext&, OptionSet<GraphicsLayerPaintingPhase>, const FloatRect&, GraphicsLayerPaintBehavior) override; 381 381 void customPositionForVisibleRectComputation(const GraphicsLayer*, FloatPoint&) const override; 382 382 bool isTrackingRepaints() const override { return m_isTrackingRepaints; } -
trunk/Source/WebKitLegacy/win/ChangeLog
r245778 r245950 1 2019-05-30 Simon Fraser <simon.fraser@apple.com> 2 3 Use an OptionSet<> for GraphicsLayerPaintingPhase 4 https://bugs.webkit.org/show_bug.cgi?id=198404 5 6 Reviewed by Tim Horton. 7 8 Replace GraphicsLayerPaintingPhase with OptionSet<GraphicsLayerPaintingPhase>. 9 10 No behavior change. 11 12 * WebCoreSupport/AcceleratedCompositingContext.cpp: 13 (AcceleratedCompositingContext::paintContents): 14 * WebCoreSupport/AcceleratedCompositingContext.h: 15 * WebView.cpp: 16 (WebView::paintContents): 17 * WebView.h: 18 1 19 2019-05-26 Wenson Hsieh <wenson_hsieh@apple.com> 2 20 -
trunk/Source/WebKitLegacy/win/WebCoreSupport/AcceleratedCompositingContext.cpp
r245088 r245950 401 401 } 402 402 403 void AcceleratedCompositingContext::paintContents(const GraphicsLayer*, GraphicsContext& context, GraphicsLayerPaintingPhase, const FloatRect& rectToPaint, GraphicsLayerPaintBehavior)403 void AcceleratedCompositingContext::paintContents(const GraphicsLayer*, GraphicsContext& context, OptionSet<GraphicsLayerPaintingPhase>, const FloatRect& rectToPaint, GraphicsLayerPaintBehavior) 404 404 { 405 405 context.save(); -
trunk/Source/WebKitLegacy/win/WebCoreSupport/AcceleratedCompositingContext.h
r236016 r245950 53 53 54 54 // GraphicsLayerClient 55 void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::FloatRect& rectToPaint, WebCore::GraphicsLayerPaintBehavior) override;55 void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, OptionSet<WebCore::GraphicsLayerPaintingPhase>, const WebCore::FloatRect& rectToPaint, WebCore::GraphicsLayerPaintBehavior) override; 56 56 float deviceScaleFactor() const override; 57 57 -
trunk/Source/WebKitLegacy/win/WebView.cpp
r244932 r245950 7364 7364 } 7365 7365 7366 void WebView::paintContents(const GraphicsLayer*, GraphicsContext& context, GraphicsLayerPaintingPhase, const FloatRect& inClipPixels, GraphicsLayerPaintBehavior)7366 void WebView::paintContents(const GraphicsLayer*, GraphicsContext& context, OptionSet<GraphicsLayerPaintingPhase>, const FloatRect& inClipPixels, GraphicsLayerPaintBehavior) 7367 7367 { 7368 7368 Frame* frame = core(m_mainFrame); -
trunk/Source/WebKitLegacy/win/WebView.h
r244932 r245950 569 569 void notifyAnimationStarted(const WebCore::GraphicsLayer*, const String&, MonotonicTime) override; 570 570 void notifyFlushRequired(const WebCore::GraphicsLayer*) override; 571 void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::FloatRect& inClip, WebCore::GraphicsLayerPaintBehavior) override;571 void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, OptionSet<WebCore::GraphicsLayerPaintingPhase>, const WebCore::FloatRect& inClip, WebCore::GraphicsLayerPaintBehavior) override; 572 572 573 573 #if USE(CA)
Note:
See TracChangeset
for help on using the changeset viewer.