Changeset 172738 in webkit
- Timestamp:
- Aug 18, 2014 6:04:37 PM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r172736 r172738 1 2014-08-18 Simon Fraser <simon.fraser@apple.com> 2 3 Provide default implementations of all GraphicsLayerClient methods 4 https://bugs.webkit.org/show_bug.cgi?id=136054 5 6 Reviewed by Tim Horton. 7 8 Make none of the functions in GraphicsLayerClient pure virtual, since in many cases 9 subclasses don't need to provide their own implementations. 10 11 * platform/graphics/GraphicsLayerClient.h: 12 (WebCore::GraphicsLayerClient::notifyAnimationStarted): 13 (WebCore::GraphicsLayerClient::notifyFlushRequired): 14 (WebCore::GraphicsLayerClient::paintContents): 15 * rendering/RenderLayerCompositor.h: 16 1 17 2014-08-18 Pratik Solanki <psolanki@apple.com> 2 18 -
trunk/Source/WebCore/platform/graphics/GraphicsLayerClient.h
r169161 r172738 63 63 64 64 // Callback for when hardware-accelerated animation started. 65 virtual void notifyAnimationStarted(const GraphicsLayer*, double time) = 0;65 virtual void notifyAnimationStarted(const GraphicsLayer*, double /*time*/) { } 66 66 67 67 // Notification that a layer property changed that requires a subsequent call to flushCompositingState() 68 68 // to appear on the screen. 69 virtual void notifyFlushRequired(const GraphicsLayer*) = 0;69 virtual void notifyFlushRequired(const GraphicsLayer*) { } 70 70 71 71 // Notification that this layer requires a flush before the next display refresh. 72 72 virtual void notifyFlushBeforeDisplayRefresh(const GraphicsLayer*) { } 73 73 74 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const FloatRect& inClip) = 0;74 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const FloatRect& /* inClip */) { } 75 75 virtual void didCommitChangesForLayer(const GraphicsLayer*) const { } 76 76 -
trunk/Source/WebCore/rendering/RenderLayerCompositor.h
r171306 r172738 306 306 307 307 // GraphicsLayerClient implementation 308 virtual void notifyAnimationStarted(const GraphicsLayer*, double) override { }309 308 virtual void notifyFlushRequired(const GraphicsLayer*) override; 310 309 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const FloatRect&) override; -
trunk/Source/WebKit2/ChangeLog
r172736 r172738 1 2014-08-18 Simon Fraser <simon.fraser@apple.com> 2 3 Provide default implementations of all GraphicsLayerClient methods 4 https://bugs.webkit.org/show_bug.cgi?id=136054 5 6 Reviewed by Tim Horton. 7 8 Remove overrides which are no longer required. 9 10 * WebProcess/WebPage/PageOverlayController.h: 11 * WebProcess/WebPage/ServicesOverlayController.h: 12 * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h: 13 1 14 2014-08-18 Pratik Solanki <psolanki@apple.com> 2 15 -
trunk/Source/WebKit2/WebProcess/WebPage/PageOverlayController.h
r172483 r172738 83 83 84 84 // WebCore::GraphicsLayerClient 85 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double) override { }86 85 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*) override; 87 86 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::FloatRect& clipRect) override; 88 87 virtual float deviceScaleFactor() const override; 89 virtual void didCommitChangesForLayer(const WebCore::GraphicsLayer*) const override { }90 88 virtual bool shouldSkipLayerInDump(const WebCore::GraphicsLayer*) const override { return true; } 91 89 -
trunk/Source/WebKit2/WebProcess/WebPage/ServicesOverlayController.h
r172636 r172738 85 85 86 86 // GraphicsLayerClient 87 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time) override { }88 87 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*) override; 89 88 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::FloatRect& inClip) override; -
trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h
r171154 r172738 106 106 virtual bool adjustLayerFlushThrottling(WebCore::LayerFlushThrottleState::Flags) override; 107 107 108 // GraphicsLayerClient109 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time) override { }110 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*) override { }111 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::FloatRect& inClip) override { }112 113 108 void updateScrolledExposedRect(); 114 109
Note: See TracChangeset
for help on using the changeset viewer.