Changeset 130439 in webkit
- Timestamp:
- Oct 4, 2012 5:43:04 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 58 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r130437 r130439 1 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 3 Final part of "sync" to "flush" renaming 4 https://bugs.webkit.org/show_bug.cgi?id=98430 5 6 Reviewed by Tim Horton. 7 8 Change method names on GraphicsLayer and GraphicsLayerClient that 9 refer to "sync" to use the term "flush" instead, to be consistent 10 with the rest of the code. 11 12 * platform/graphics/GraphicsLayer.h: 13 (WebCore::GraphicsLayer::flushCompositingState): 14 (WebCore::GraphicsLayer::flushCompositingStateForThisLayerOnly): 15 * platform/graphics/GraphicsLayerClient.h: 16 (GraphicsLayerClient): 17 * platform/graphics/blackberry/GraphicsLayerBlackBerry.h: 18 (WebCore::GraphicsLayerBlackBerry::notifyFlushRequired): 19 * platform/graphics/blackberry/LayerWebKitThread.cpp: 20 (WebCore::LayerWebKitThread::setNeedsCommit): 21 * platform/graphics/ca/GraphicsLayerCA.cpp: 22 (WebCore::GraphicsLayerCA::flushCompositingState): 23 (WebCore::GraphicsLayerCA::flushCompositingStateForThisLayerOnly): 24 (WebCore::GraphicsLayerCA::platformCALayerDidCreateTiles): 25 (WebCore::GraphicsLayerCA::positionForCloneRootLayer): 26 (WebCore::GraphicsLayerCA::noteLayerPropertyChanged): 27 * platform/graphics/ca/GraphicsLayerCA.h: 28 (GraphicsLayerCA): 29 * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp: 30 (WebCore::GraphicsLayerTextureMapper::notifyChange): 31 (WebCore::GraphicsLayerTextureMapper::flushCompositingStateForThisLayerOnly): 32 (WebCore::GraphicsLayerTextureMapper::flushCompositingState): 33 * platform/graphics/texmap/GraphicsLayerTextureMapper.h: 34 (GraphicsLayerTextureMapper): 35 * platform/graphics/texmap/TextureMapperLayer.cpp: 36 (WebCore::TextureMapperLayer::flushCompositingState): 37 (WebCore::TextureMapperLayer::flushCompositingStateSelf): 38 * platform/graphics/texmap/TextureMapperLayer.h: 39 (TextureMapperLayer): 40 * rendering/RenderLayerBacking.cpp: 41 (WebCore::RenderLayerBacking::notifyFlushRequired): 42 * rendering/RenderLayerBacking.h: 43 (RenderLayerBacking): 44 * rendering/RenderLayerCompositor.cpp: 45 (WebCore::RenderLayerCompositor::flushPendingLayerChanges): 46 * rendering/RenderLayerCompositor.h: 47 (WebCore::RenderLayerCompositor::notifyFlushRequired): 48 1 49 2012-10-04 Tab Atkins <tabatkins@google.com> 2 50 -
trunk/Source/WebCore/platform/graphics/GraphicsLayer.h
r130185 r130439 386 386 // with updates drawn into the window. These methods flush internal batched state on this layer 387 387 // and descendant layers, and this layer only. 388 virtual void syncCompositingState(const FloatRect& /* clipRect */) { }389 virtual void syncCompositingStateForThisLayerOnly() { }388 virtual void flushCompositingState(const FloatRect& /* clipRect */) { } 389 virtual void flushCompositingStateForThisLayerOnly() { } 390 390 391 391 // Return a string with a human readable form of the layer tree, If debug is true -
trunk/Source/WebCore/platform/graphics/GraphicsLayerClient.h
r126663 r130439 64 64 virtual void notifyAnimationStarted(const GraphicsLayer*, double time) = 0; 65 65 66 // Notification that a layer property changed that requires a subsequent call to syncCompositingState()66 // Notification that a layer property changed that requires a subsequent call to flushCompositingState() 67 67 // to appear on the screen. 68 virtual void notify SyncRequired(const GraphicsLayer*) = 0;68 virtual void notifyFlushRequired(const GraphicsLayer*) = 0; 69 69 70 70 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& inClip) = 0; -
trunk/Source/WebCore/platform/graphics/blackberry/GraphicsLayerBlackBerry.h
r127502 r130439 117 117 virtual void setDebugBorder(const Color&, float borderWidth); 118 118 119 void notify SyncRequired()119 void notifyFlushRequired() 120 120 { 121 121 if (m_client) 122 m_client->notify SyncRequired(this);122 m_client->notifyFlushRequired(this); 123 123 } 124 124 -
trunk/Source/WebCore/platform/graphics/blackberry/LayerWebKitThread.cpp
r126885 r130439 196 196 void LayerWebKitThread::setNeedsCommit() 197 197 { 198 // Call notify SyncRequired(), which in this implementation plumbs through to198 // Call notifyFlushRequired(), which in this implementation plumbs through to 199 199 // call scheduleRootLayerCommit() on the WebView, which will cause us to commit 200 200 // changes done on the WebKit thread for display on the Compositing thread. 201 201 if (m_owner) 202 m_owner->notify SyncRequired();202 m_owner->notifyFlushRequired(); 203 203 } 204 204 -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r130072 r130439 894 894 } 895 895 896 void GraphicsLayerCA:: syncCompositingState(const FloatRect& clipRect)896 void GraphicsLayerCA::flushCompositingState(const FloatRect& clipRect) 897 897 { 898 898 TransformState state(TransformState::UnapplyInverseTransformDirection, FloatQuad(clipRect)); … … 900 900 } 901 901 902 void GraphicsLayerCA:: syncCompositingStateForThisLayerOnly()902 void GraphicsLayerCA::flushCompositingStateForThisLayerOnly() 903 903 { 904 904 float pageScaleFactor; … … 1006 1006 1007 1007 // Ensure that the layout is up to date before any individual tiles are painted by telling the client 1008 // that it needs to syncits layer state, which will end up scheduling the layer flusher.1009 client()->notify SyncRequired(this);1008 // that it needs to flush its layer state, which will end up scheduling the layer flusher. 1009 client()->notifyFlushRequired(this); 1010 1010 } 1011 1011 … … 2587 2587 FloatPoint GraphicsLayerCA::positionForCloneRootLayer() const 2588 2588 { 2589 // This can get called during a syncwhen we've just removed the m_replicaLayer.2589 // This can get called during a flush when we've just removed the m_replicaLayer. 2590 2590 if (!m_replicaLayer) 2591 2591 return FloatPoint(); … … 2844 2844 { 2845 2845 if (!m_uncommittedChanges && m_client) 2846 m_client->notify SyncRequired(this);2846 m_client->notifyFlushRequired(this); 2847 2847 2848 2848 m_uncommittedChanges |= flags; -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h
r121461 r130439 39 39 40 40 // Enable this to add a light red wash over the visible portion of Tiled Layers, as computed 41 // by syncCompositingState().41 // by flushCompositingState(). 42 42 // #define VISIBLE_TILE_WASH 43 43 … … 132 132 void recursiveCommitChanges(const TransformState&, float pageScaleFactor = 1, const FloatPoint& positionRelativeToBase = FloatPoint(), bool affectedByPageScale = false); 133 133 134 virtual void syncCompositingState(const FloatRect&);135 virtual void syncCompositingStateForThisLayerOnly();134 virtual void flushCompositingState(const FloatRect&); 135 virtual void flushCompositingStateForThisLayerOnly(); 136 136 137 137 virtual TiledBacking* tiledBacking() OVERRIDE; -
trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
r130185 r130439 57 57 if (!client()) 58 58 return; 59 client()->notify SyncRequired(this);59 client()->notifyFlushRequired(this); 60 60 } 61 61 … … 368 368 /* \reimp (GraphicsLayer.h) 369 369 */ 370 void GraphicsLayerTextureMapper:: syncCompositingStateForThisLayerOnly()371 { 372 m_layer-> syncCompositingState(this);373 } 374 375 /* \reimp (GraphicsLayer.h) 376 */ 377 void GraphicsLayerTextureMapper:: syncCompositingState(const FloatRect&)378 { 379 m_layer-> syncCompositingState(this, TextureMapperLayer::TraverseDescendants);370 void GraphicsLayerTextureMapper::flushCompositingStateForThisLayerOnly() 371 { 372 m_layer->flushCompositingState(this); 373 } 374 375 /* \reimp (GraphicsLayer.h) 376 */ 377 void GraphicsLayerTextureMapper::flushCompositingState(const FloatRect&) 378 { 379 m_layer->flushCompositingState(this, TextureMapperLayer::TraverseDescendants); 380 380 } 381 381 -
trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h
r125834 r130439 70 70 virtual void setContentsToMedia(PlatformLayer*); 71 71 virtual void setContentsToCanvas(PlatformLayer* canvas) { setContentsToMedia(canvas); } 72 virtual void syncCompositingState(const FloatRect&);73 virtual void syncCompositingStateForThisLayerOnly();72 virtual void flushCompositingState(const FloatRect&); 73 virtual void flushCompositingStateForThisLayerOnly(); 74 74 virtual void setName(const String& name); 75 75 virtual PlatformLayer* platformLayer() const { return 0; } -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp
r129993 r130439 403 403 } 404 404 405 void TextureMapperLayer:: syncCompositingState(GraphicsLayerTextureMapper* graphicsLayer, int options)406 { 407 syncCompositingState(graphicsLayer, rootLayer()->m_textureMapper, options);408 } 409 410 void TextureMapperLayer:: syncCompositingStateSelf(GraphicsLayerTextureMapper* graphicsLayer, TextureMapper* textureMapper)405 void TextureMapperLayer::flushCompositingState(GraphicsLayerTextureMapper* graphicsLayer, int options) 406 { 407 flushCompositingState(graphicsLayer, rootLayer()->m_textureMapper, options); 408 } 409 410 void TextureMapperLayer::flushCompositingStateSelf(GraphicsLayerTextureMapper* graphicsLayer, TextureMapper* textureMapper) 411 411 { 412 412 int changeMask = graphicsLayer->changeMask(); … … 520 520 } 521 521 522 void TextureMapperLayer:: syncCompositingState(GraphicsLayerTextureMapper* graphicsLayer, TextureMapper* textureMapper, int options)522 void TextureMapperLayer::flushCompositingState(GraphicsLayerTextureMapper* graphicsLayer, TextureMapper* textureMapper, int options) 523 523 { 524 524 if (!textureMapper) … … 526 526 527 527 if (graphicsLayer && !(options & ComputationsOnly)) { 528 syncCompositingStateSelf(graphicsLayer, textureMapper);528 flushCompositingStateSelf(graphicsLayer, textureMapper); 529 529 graphicsLayer->didSynchronize(); 530 530 } 531 531 532 532 if (graphicsLayer && m_state.maskLayer) { 533 m_state.maskLayer-> syncCompositingState(toGraphicsLayerTextureMapper(graphicsLayer->maskLayer()), textureMapper);533 m_state.maskLayer->flushCompositingState(toGraphicsLayerTextureMapper(graphicsLayer->maskLayer()), textureMapper); 534 534 535 535 // A mask layer has its parent's size by default, in case it's not set specifically. … … 539 539 540 540 if (m_state.replicaLayer) 541 m_state.replicaLayer-> syncCompositingState(toGraphicsLayerTextureMapper(graphicsLayer->replicaLayer()), textureMapper);541 m_state.replicaLayer->flushCompositingState(toGraphicsLayerTextureMapper(graphicsLayer->replicaLayer()), textureMapper); 542 542 543 543 syncAnimations(); … … 553 553 if (!layer) 554 554 continue; 555 layer-> syncCompositingState(toGraphicsLayerTextureMapper(children[i]), textureMapper, options);555 layer->flushCompositingState(toGraphicsLayerTextureMapper(children[i]), textureMapper, options); 556 556 } 557 557 } else { 558 558 for (int i = m_children.size() - 1; i >= 0; --i) 559 m_children[i]-> syncCompositingState(0, textureMapper, options);559 m_children[i]->flushCompositingState(0, textureMapper, options); 560 560 } 561 561 } -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.h
r128572 r130439 115 115 virtual ~TextureMapperLayer(); 116 116 117 void syncCompositingState(GraphicsLayerTextureMapper*, int syncOptions = 0);118 void syncCompositingState(GraphicsLayerTextureMapper*, TextureMapper*, int syncOptions = 0);117 void flushCompositingState(GraphicsLayerTextureMapper*, int syncOptions = 0); 118 void flushCompositingState(GraphicsLayerTextureMapper*, TextureMapper*, int syncOptions = 0); 119 119 IntSize size() const { return IntSize(m_size.width(), m_size.height()); } 120 120 void setTransform(const TransformationMatrix&); … … 145 145 void invalidateViewport(const FloatRect&); 146 146 void notifyChange(ChangeMask); 147 void syncCompositingStateSelf(GraphicsLayerTextureMapper*, TextureMapper*);147 void flushCompositingStateSelf(GraphicsLayerTextureMapper*, TextureMapper*); 148 148 149 149 static int compareGraphicsLayersZValue(const void* a, const void* b); -
trunk/Source/WebCore/rendering/RenderLayerBacking.cpp
r130302 r130439 1677 1677 } 1678 1678 1679 void RenderLayerBacking::notify SyncRequired(const GraphicsLayer*)1679 void RenderLayerBacking::notifyFlushRequired(const GraphicsLayer*) 1680 1680 { 1681 1681 if (!renderer()->documentBeingDestroyed()) -
trunk/Source/WebCore/rendering/RenderLayerBacking.h
r130081 r130439 138 138 virtual bool usingTileCache(const GraphicsLayer*) const { return m_usingTiledCacheLayer; } 139 139 virtual void notifyAnimationStarted(const GraphicsLayer*, double startTime); 140 virtual void notify SyncRequired(const GraphicsLayer*);140 virtual void notifyFlushRequired(const GraphicsLayer*); 141 141 142 142 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& clip); -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r130407 r130439 284 284 { 285 285 // FrameView::flushCompositingStateIncludingSubframes() flushes each subframe, 286 // but GraphicsLayer:: syncCompositingState() will cross frame boundaries286 // but GraphicsLayer::flushCompositingState() will cross frame boundaries 287 287 // if the GraphicsLayers are connected (the RootLayerAttachedViaEnclosingFrame case). 288 288 // As long as we're not the root of the flush, we can bail. … … 298 298 // FIXME: Passing frameRect() is correct only when RenderLayerCompositor uses a ScrollLayer (as in WebKit2) 299 299 // otherwise, the passed clip rect needs to take scrolling into account 300 rootLayer-> syncCompositingState(frameView->frameRect());300 rootLayer->flushCompositingState(frameView->frameRect()); 301 301 } 302 302 } -
trunk/Source/WebCore/rendering/RenderLayerCompositor.h
r130407 r130439 226 226 // GraphicsLayerClient Implementation 227 227 virtual void notifyAnimationStarted(const GraphicsLayer*, double) { } 228 virtual void notify SyncRequired(const GraphicsLayer*) { scheduleLayerFlush(); }228 virtual void notifyFlushRequired(const GraphicsLayer*) { scheduleLayerFlush(); } 229 229 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect&); 230 230 -
trunk/Source/WebKit/blackberry/Api/WebOverlay.cpp
r128755 r130439 365 365 } 366 366 367 void WebOverlayPrivateWebKitThread::notify SyncRequired(const WebCore::GraphicsLayer*)367 void WebOverlayPrivateWebKitThread::notifyFlushRequired(const WebCore::GraphicsLayer*) 368 368 { 369 369 if (WebPagePrivate* page = this->page()) -
trunk/Source/WebKit/blackberry/Api/WebOverlay_p.h
r128755 r130439 166 166 // GraphicsLayerClient 167 167 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time) { } 168 virtual void notify SyncRequired(const WebCore::GraphicsLayer*);168 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*); 169 169 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& inClip); 170 170 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const { return false; } -
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r130392 r130439 5884 5884 } 5885 5885 5886 void WebPagePrivate::notify SyncRequired(const GraphicsLayer*)5886 void WebPagePrivate::notifyFlushRequired(const GraphicsLayer*) 5887 5887 { 5888 5888 scheduleRootLayerCommit(); -
trunk/Source/WebKit/blackberry/Api/WebPage_p.h
r129909 r130439 399 399 // Fallback GraphicsLayerClient implementation, used for various overlay layers. 400 400 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time) { } 401 virtual void notify SyncRequired(const WebCore::GraphicsLayer*);401 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*); 402 402 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& inClip) { } 403 403 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const; -
trunk/Source/WebKit/blackberry/ChangeLog
r130400 r130439 1 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 3 Final part of "sync" to "flush" renaming 4 https://bugs.webkit.org/show_bug.cgi?id=98430 5 6 Reviewed by Tim Horton. 7 8 Change method names on GraphicsLayer and GraphicsLayerClient that 9 refer to "sync" to use the term "flush" instead, to be consistent 10 with the rest of the code. 11 12 * Api/WebOverlay.cpp: 13 (BlackBerry::WebKit::WebOverlayPrivateWebKitThread::notifyFlushRequired): 14 * Api/WebOverlay_p.h: 15 (WebOverlayPrivateWebKitThread): 16 * Api/WebPage.cpp: 17 (BlackBerry::WebKit::WebPagePrivate::notifyFlushRequired): 18 * Api/WebPage_p.h: 19 (WebPagePrivate): 20 * WebKitSupport/DefaultTapHighlight.cpp: 21 (BlackBerry::WebKit::DefaultTapHighlight::notifyFlushRequired): 22 * WebKitSupport/DefaultTapHighlight.h: 23 (DefaultTapHighlight): 24 * WebKitSupport/InspectorOverlayBlackBerry.cpp: 25 (BlackBerry::WebKit::InspectorOverlay::notifyFlushRequired): 26 * WebKitSupport/InspectorOverlayBlackBerry.h: 27 (InspectorOverlay): 28 * WebKitSupport/SelectionOverlay.cpp: 29 (BlackBerry::WebKit::SelectionOverlay::notifyFlushRequired): 30 * WebKitSupport/SelectionOverlay.h: 31 (SelectionOverlay): 32 1 33 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 34 -
trunk/Source/WebKit/blackberry/WebKitSupport/DefaultTapHighlight.cpp
r125382 r130439 111 111 } 112 112 113 void DefaultTapHighlight::notify SyncRequired(const GraphicsLayer* layer)113 void DefaultTapHighlight::notifyFlushRequired(const GraphicsLayer* layer) 114 114 { 115 m_page->notify SyncRequired(layer);115 m_page->notifyFlushRequired(layer); 116 116 } 117 117 -
trunk/Source/WebKit/blackberry/WebKitSupport/DefaultTapHighlight.h
r129901 r130439 56 56 // GraphicsLayerClient 57 57 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time) { } 58 virtual void notify SyncRequired(const WebCore::GraphicsLayer*);58 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*); 59 59 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& inClip); 60 60 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const; -
trunk/Source/WebKit/blackberry/WebKitSupport/InspectorOverlayBlackBerry.cpp
r128502 r130439 43 43 44 44 #if USE(ACCELERATED_COMPOSITING) 45 void InspectorOverlay::notify SyncRequired(const WebCore::GraphicsLayer* layer)45 void InspectorOverlay::notifyFlushRequired(const WebCore::GraphicsLayer* layer) 46 46 { 47 m_webPage->notify SyncRequired(layer);47 m_webPage->notifyFlushRequired(layer); 48 48 } 49 49 -
trunk/Source/WebKit/blackberry/WebKitSupport/InspectorOverlayBlackBerry.h
r128502 r130439 53 53 #if USE(ACCELERATED_COMPOSITING) 54 54 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time) { } 55 virtual void notify SyncRequired(const WebCore::GraphicsLayer*);55 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*); 56 56 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& inClip); 57 57 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const; -
trunk/Source/WebKit/blackberry/WebKitSupport/SelectionOverlay.cpp
r124615 r130439 95 95 } 96 96 97 void SelectionOverlay::notify SyncRequired(const GraphicsLayer* layer)97 void SelectionOverlay::notifyFlushRequired(const GraphicsLayer* layer) 98 98 { 99 m_page->notify SyncRequired(layer);99 m_page->notifyFlushRequired(layer); 100 100 } 101 101 -
trunk/Source/WebKit/blackberry/WebKitSupport/SelectionOverlay.h
r124615 r130439 51 51 // GraphicsLayerClient 52 52 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time) { } 53 virtual void notify SyncRequired(const WebCore::GraphicsLayer*);53 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*); 54 54 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& inClip); 55 55 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const; -
trunk/Source/WebKit/chromium/src/NonCompositedContentHost.cpp
r130321 r130439 167 167 } 168 168 169 void NonCompositedContentHost::notify SyncRequired(const WebCore::GraphicsLayer*)169 void NonCompositedContentHost::notifyFlushRequired(const WebCore::GraphicsLayer*) 170 170 { 171 171 m_webView->scheduleCompositingLayerSync(); -
trunk/Source/WebKit/chromium/src/NonCompositedContentHost.h
r127789 r130439 70 70 // GraphicsLayerClient 71 71 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time); 72 virtual void notify SyncRequired(const WebCore::GraphicsLayer*);72 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*); 73 73 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& clipRect); 74 74 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const; -
trunk/Source/WebKit/chromium/src/PageOverlay.cpp
r116689 r130439 76 76 virtual void notifyAnimationStarted(const GraphicsLayer*, double time) { } 77 77 78 virtual void notify SyncRequired(const GraphicsLayer*) { }78 virtual void notifyFlushRequired(const GraphicsLayer*) { } 79 79 80 80 virtual void paintContents(const GraphicsLayer*, GraphicsContext& gc, GraphicsLayerPaintingPhase, const IntRect& inClip) -
trunk/Source/WebKit/chromium/tests/GraphicsLayerChromiumTest.cpp
r129160 r130439 51 51 public: 52 52 virtual void notifyAnimationStarted(const GraphicsLayer*, double time) OVERRIDE { } 53 virtual void notify SyncRequired(const GraphicsLayer*) OVERRIDE { }53 virtual void notifyFlushRequired(const GraphicsLayer*) OVERRIDE { } 54 54 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& inClip) OVERRIDE { } 55 55 virtual bool showDebugBorders(const GraphicsLayer*) const OVERRIDE { return false; } -
trunk/Source/WebKit/chromium/tests/ImageLayerChromiumTest.cpp
r129160 r130439 39 39 public: 40 40 virtual void notifyAnimationStarted(const GraphicsLayer*, double time) { } 41 virtual void notify SyncRequired(const GraphicsLayer*) { }41 virtual void notifyFlushRequired(const GraphicsLayer*) { } 42 42 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& inClip) { } 43 43 virtual bool showDebugBorders(const GraphicsLayer*) const { return false; } -
trunk/Source/WebKit/efl/ChangeLog
r130400 r130439 1 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 3 Final part of "sync" to "flush" renaming 4 https://bugs.webkit.org/show_bug.cgi?id=98430 5 6 Reviewed by Tim Horton. 7 8 Change method names on GraphicsLayer and GraphicsLayerClient that 9 refer to "sync" to use the term "flush" instead, to be consistent 10 with the rest of the code. 11 12 * WebCoreSupport/AcceleratedCompositingContextEfl.cpp: 13 (WebCore::AcceleratedCompositingContext::syncLayersNow): 14 (WebCore::AcceleratedCompositingContext::attachRootGraphicsLayer): 15 1 16 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 17 -
trunk/Source/WebKit/efl/WebCoreSupport/AcceleratedCompositingContextEfl.cpp
r130400 r130439 69 69 { 70 70 if (m_rootGraphicsLayer) 71 m_rootGraphicsLayer-> syncCompositingStateForThisLayerOnly();71 m_rootGraphicsLayer->flushCompositingStateForThisLayerOnly(); 72 72 73 73 EWKPrivate::corePage(m_view)->mainFrame()->view()->flushCompositingStateIncludingSubframes(); … … 110 110 m_rootTextureMapperLayer->setTextureMapper(m_textureMapper.get()); 111 111 112 m_rootGraphicsLayer-> syncCompositingStateForThisLayerOnly();112 m_rootGraphicsLayer->flushCompositingStateForThisLayerOnly(); 113 113 } 114 114 -
trunk/Source/WebKit/gtk/ChangeLog
r130400 r130439 1 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 3 Final part of "sync" to "flush" renaming 4 https://bugs.webkit.org/show_bug.cgi?id=98430 5 6 Reviewed by Tim Horton. 7 8 Change method names on GraphicsLayer and GraphicsLayerClient that 9 refer to "sync" to use the term "flush" instead, to be consistent 10 with the rest of the code. 11 12 * WebCoreSupport/AcceleratedCompositingContext.h: 13 (AcceleratedCompositingContext): 14 * WebCoreSupport/AcceleratedCompositingContextCairo.cpp: 15 (WebKit::AcceleratedCompositingContext::attachRootGraphicsLayer): 16 (WebKit::AcceleratedCompositingContext::resizeRootLayer): 17 (WebKit::AcceleratedCompositingContext::syncLayersNow): 18 (WebKit::AcceleratedCompositingContext::notifyFlushRequired): 19 * WebCoreSupport/AcceleratedCompositingContextClutter.cpp: 20 (WebKit::AcceleratedCompositingContext::flushPendingLayerChanges): 21 (WebKit::AcceleratedCompositingContext::notifyFlushRequired): 22 * WebCoreSupport/AcceleratedCompositingContextGL.cpp: 23 (WebKit::AcceleratedCompositingContext::flushPendingLayerChanges): 24 (WebKit::AcceleratedCompositingContext::notifyFlushRequired): 25 1 26 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 27 -
trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContext.h
r129651 r130439 59 59 // GraphicsLayerClient 60 60 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time); 61 virtual void notify SyncRequired(const WebCore::GraphicsLayer*);61 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*); 62 62 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& rectToPaint); 63 63 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const; -
trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextCairo.cpp
r130400 r130439 90 90 m_textureMapper = TextureMapperImageBuffer::create(); 91 91 m_rootTextureMapperLayer->setTextureMapper(m_textureMapper.get()); 92 m_rootGraphicsLayer-> syncCompositingStateForThisLayerOnly();92 m_rootGraphicsLayer->flushCompositingStateForThisLayerOnly(); 93 93 } 94 94 … … 111 111 return; 112 112 m_rootGraphicsLayer->setSize(size); 113 m_rootGraphicsLayer-> syncCompositingStateForThisLayerOnly();113 m_rootGraphicsLayer->flushCompositingStateForThisLayerOnly(); 114 114 } 115 115 … … 136 136 137 137 if (m_rootGraphicsLayer) 138 m_rootGraphicsLayer-> syncCompositingStateForThisLayerOnly();138 m_rootGraphicsLayer->flushCompositingStateForThisLayerOnly(); 139 139 140 140 core(m_webView)->mainFrame()->view()->flushCompositingStateIncludingSubframes(); … … 159 159 160 160 } 161 void AcceleratedCompositingContext::notify SyncRequired(const GraphicsLayer*)161 void AcceleratedCompositingContext::notifyFlushRequired(const GraphicsLayer*) 162 162 { 163 163 -
trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextClutter.cpp
r130400 r130439 137 137 { 138 138 if (m_rootGraphicsLayer) 139 m_rootGraphicsLayer-> syncCompositingStateForThisLayerOnly();139 m_rootGraphicsLayer->flushCompositingStateForThisLayerOnly(); 140 140 141 141 return core(m_webView)->mainFrame()->view()->flushCompositingStateIncludingSubframes(); … … 156 156 ASSERT_NOT_REACHED(); 157 157 } 158 void AcceleratedCompositingContext::notify SyncRequired(const WebCore::GraphicsLayer*)158 void AcceleratedCompositingContext::notifyFlushRequired(const WebCore::GraphicsLayer*) 159 159 { 160 160 ASSERT_NOT_REACHED(); -
trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextGL.cpp
r130400 r130439 323 323 bool AcceleratedCompositingContext::flushPendingLayerChanges() 324 324 { 325 m_rootLayer-> syncCompositingStateForThisLayerOnly();326 m_nonCompositedContentLayer-> syncCompositingStateForThisLayerOnly();325 m_rootLayer->flushCompositingStateForThisLayerOnly(); 326 m_nonCompositedContentLayer->flushCompositingStateForThisLayerOnly(); 327 327 return core(m_webView)->mainFrame()->view()->flushCompositingStateIncludingSubframes(); 328 328 } … … 371 371 372 372 } 373 void AcceleratedCompositingContext::notify SyncRequired(const GraphicsLayer*)373 void AcceleratedCompositingContext::notifyFlushRequired(const GraphicsLayer*) 374 374 { 375 375 -
trunk/Source/WebKit/mac/ChangeLog
r130416 r130439 1 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 3 Final part of "sync" to "flush" renaming 4 https://bugs.webkit.org/show_bug.cgi?id=98430 5 6 Reviewed by Tim Horton. 7 8 Change method names on GraphicsLayer and GraphicsLayerClient that 9 refer to "sync" to use the term "flush" instead, to be consistent 10 with the rest of the code. 11 12 * WebView/WebView.mm: 13 1 14 2012-10-03 Benjamin Poulain <bpoulain@apple.com> 2 15 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r130400 r130439 6330 6330 To fix this, the GraphicsLayerCA code in WebCore does not change the CA 6331 6331 layer tree during style changes and layout; it stores up all changes and 6332 commits them via syncCompositingState(). There are then two situations in6333 which we can call syncCompositingState():6334 6335 1. When painting. FrameView::paintContents() makes a call to syncCompositingState().6332 commits them via flushCompositingState(). There are then two situations in 6333 which we can call flushCompositingState(): 6334 6335 1. When painting. FrameView::paintContents() makes a call to flushCompositingState(). 6336 6336 6337 6337 2. When style changes/layout have made changes to the layer tree which do not 6338 6338 result in painting. In this case we need a run loop observer to do a 6339 syncCompositingState() at an appropriate time. The observer will keep firing6339 flushCompositingState() at an appropriate time. The observer will keep firing 6340 6340 until the time is right (essentially when there are no more pending layouts). 6341 6341 -
trunk/Source/WebKit/qt/ChangeLog
r130400 r130439 1 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 3 Final part of "sync" to "flush" renaming 4 https://bugs.webkit.org/show_bug.cgi?id=98430 5 6 Reviewed by Tim Horton. 7 8 Change method names on GraphicsLayer and GraphicsLayerClient that 9 refer to "sync" to use the term "flush" instead, to be consistent 10 with the rest of the code. 11 12 * WebCoreSupport/PageClientQt.cpp: 13 (WebCore::TextureMapperLayerClientQt::syncRootLayer): 14 1 15 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 16 -
trunk/Source/WebKit/qt/WebCoreSupport/PageClientQt.cpp
r130400 r130439 111 111 void TextureMapperLayerClientQt::syncRootLayer() 112 112 { 113 m_rootGraphicsLayer-> syncCompositingStateForThisLayerOnly();113 m_rootGraphicsLayer->flushCompositingStateForThisLayerOnly(); 114 114 } 115 115 -
trunk/Source/WebKit/win/ChangeLog
r130400 r130439 1 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 3 Final part of "sync" to "flush" renaming 4 https://bugs.webkit.org/show_bug.cgi?id=98430 5 6 Reviewed by Tim Horton. 7 8 Change method names on GraphicsLayer and GraphicsLayerClient that 9 refer to "sync" to use the term "flush" instead, to be consistent 10 with the rest of the code. 11 12 * WebView.cpp: 13 (WebView::notifyFlushRequired): 14 (WebView::flushPendingGraphicsLayerChanges): 15 * WebView.h: 16 1 17 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 18 -
trunk/Source/WebKit/win/WebView.cpp
r130400 r130439 6632 6632 } 6633 6633 6634 void WebView::notify SyncRequired(const GraphicsLayer*)6634 void WebView::notifyFlushRequired(const GraphicsLayer*) 6635 6635 { 6636 6636 flushPendingGraphicsLayerChangesSoon(); … … 6674 6674 // Updating layout might have taken us out of compositing mode. 6675 6675 if (m_backingLayer) 6676 m_backingLayer-> syncCompositingStateForThisLayerOnly();6676 m_backingLayer->flushCompositingStateForThisLayerOnly(); 6677 6677 6678 6678 view->flushCompositingStateIncludingSubframes(); -
trunk/Source/WebKit/win/WebView.h
r122676 r130439 1019 1019 // GraphicsLayerClient 1020 1020 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time); 1021 virtual void notify SyncRequired(const WebCore::GraphicsLayer*);1021 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*); 1022 1022 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& inClip); 1023 1023 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const; -
trunk/Source/WebKit2/ChangeLog
r130434 r130439 1 2012-10-04 Simon Fraser <simon.fraser@apple.com> 2 3 Final part of "sync" to "flush" renaming 4 https://bugs.webkit.org/show_bug.cgi?id=98430 5 6 Reviewed by Tim Horton. 7 8 Change method names on GraphicsLayer and GraphicsLayerClient that 9 refer to "sync" to use the term "flush" instead, to be consistent 10 with the rest of the code. 11 12 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp: 13 (WebKit::LayerTreeRenderer::paintToCurrentGLContext): 14 (WebKit::LayerTreeRenderer::flushLayerChanges): 15 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h: 16 (WebKit::LayerTreeRenderer::notifyFlushRequired): 17 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp: 18 (WebCore::CoordinatedGraphicsLayer::didChangeLayerState): 19 (WebCore::CoordinatedGraphicsLayer::didChangeAnimatedProperties): 20 (WebCore::CoordinatedGraphicsLayer::didChangeChildren): 21 (WebCore::CoordinatedGraphicsLayer::didChangeFilters): 22 (WebCore::CoordinatedGraphicsLayer::setContentsNeedsDisplay): 23 (WebCore::CoordinatedGraphicsLayer::setContentsToCanvas): 24 (WebCore::CoordinatedGraphicsLayer::flushCompositingState): 25 (WebCore::CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly): 26 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h: 27 (CoordinatedGraphicsLayer): 28 * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: 29 (WebKit::LayerTreeCoordinator::flushPendingLayerChanges): 30 (WebKit::LayerTreeCoordinator::notifyFlushRequired): 31 * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h: 32 (LayerTreeCoordinator): 33 * WebProcess/WebPage/ca/LayerTreeHostCA.cpp: 34 (WebKit::LayerTreeHostCA::notifyFlushRequired): 35 (WebKit::LayerTreeHostCA::flushPendingLayerChanges): 36 * WebProcess/WebPage/ca/LayerTreeHostCA.h: 37 (LayerTreeHostCA): 38 * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp: 39 (WebKit::LayerTreeHostGtk::notifyFlushRequired): 40 (WebKit::LayerTreeHostGtk::flushPendingLayerChanges): 41 * WebProcess/WebPage/gtk/LayerTreeHostGtk.h: 42 (LayerTreeHostGtk): 43 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h: 44 (TiledCoreAnimationDrawingArea): 45 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm: 46 (WebKit::TiledCoreAnimationDrawingArea::notifyFlushRequired): 47 (WebKit::TiledCoreAnimationDrawingArea::flushLayers): 48 1 49 2012-10-04 Christophe Dumez <christophe.dumez@intel.com> 2 50 -
trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp
r127273 r130439 127 127 currentRootLayer->setOpacity(opacity); 128 128 currentRootLayer->setTransform(matrix); 129 currentRootLayer-> syncCompositingStateForThisLayerOnly();129 currentRootLayer->flushCompositingStateForThisLayerOnly(); 130 130 } 131 131 … … 394 394 m_renderedContentsScrollPosition = m_pendingRenderedContentsScrollPosition; 395 395 396 m_rootLayer-> syncCompositingState(FloatRect());396 m_rootLayer->flushCompositingState(FloatRect()); 397 397 commitTileOperations(); 398 398 -
trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/LayerTreeRenderer.h
r127273 r130439 101 101 // Reimplementations from WebCore::GraphicsLayerClient. 102 102 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double) { } 103 virtual void notify SyncRequired(const WebCore::GraphicsLayer*) { }103 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*) { } 104 104 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const { return false; } 105 105 virtual bool showRepaintCounter(const WebCore::GraphicsLayer*) const { return false; } -
trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp
r128163 r130439 66 66 m_shouldSyncLayerState = true; 67 67 if (client()) 68 client()->notify SyncRequired(this);68 client()->notifyFlushRequired(this); 69 69 } 70 70 … … 73 73 m_shouldSyncAnimatedProperties = true; 74 74 if (client()) 75 client()->notify SyncRequired(this);75 client()->notifyFlushRequired(this); 76 76 } 77 77 … … 80 80 m_shouldSyncChildren = true; 81 81 if (client()) 82 client()->notify SyncRequired(this);82 client()->notifyFlushRequired(this); 83 83 } 84 84 … … 88 88 m_shouldSyncFilters = true; 89 89 if (client()) 90 client()->notify SyncRequired(this);90 client()->notifyFlushRequired(this); 91 91 } 92 92 #endif … … 341 341 m_canvasNeedsDisplay = true; 342 342 if (client()) 343 client()->notify SyncRequired(this);343 client()->notifyFlushRequired(this); 344 344 } 345 345 … … 349 349 m_canvasNeedsDisplay = true; 350 350 if (client()) 351 client()->notify SyncRequired(this);351 client()->notifyFlushRequired(this); 352 352 } 353 353 … … 434 434 } 435 435 436 void CoordinatedGraphicsLayer:: syncCompositingState(const FloatRect& rect)436 void CoordinatedGraphicsLayer::flushCompositingState(const FloatRect& rect) 437 437 { 438 438 if (CoordinatedGraphicsLayer* mask = toCoordinatedGraphicsLayer(maskLayer())) 439 mask-> syncCompositingStateForThisLayerOnly();439 mask->flushCompositingStateForThisLayerOnly(); 440 440 441 441 if (CoordinatedGraphicsLayer* replica = toCoordinatedGraphicsLayer(replicaLayer())) 442 replica-> syncCompositingStateForThisLayerOnly();442 replica->flushCompositingStateForThisLayerOnly(); 443 443 444 444 m_CoordinatedGraphicsLayerClient->syncFixedLayers(); 445 445 446 syncCompositingStateForThisLayerOnly();446 flushCompositingStateForThisLayerOnly(); 447 447 448 448 for (size_t i = 0; i < children().size(); ++i) 449 children()[i]-> syncCompositingState(rect);449 children()[i]->flushCompositingState(rect); 450 450 } 451 451 … … 546 546 } 547 547 548 void CoordinatedGraphicsLayer:: syncCompositingStateForThisLayerOnly()548 void CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() 549 549 { 550 550 // The remote image might have been released by purgeBackingStores. -
trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h
r130031 r130439 1 /*1 flushCompositingState /* 2 2 Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 3 … … 116 116 void setContentsScale(float); 117 117 void setVisibleContentRectTrajectoryVector(const FloatPoint&); 118 virtual void syncCompositingState(const FloatRect&);119 virtual void syncCompositingStateForThisLayerOnly();118 virtual void flushCompositingState(const FloatRect&); 119 virtual void flushCompositingStateForThisLayerOnly(); 120 120 #if ENABLE(CSS_FILTERS) 121 121 bool setFilters(const FilterOperations&); -
trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp
r130400 r130439 260 260 261 261 bool didSync = m_webPage->corePage()->mainFrame()->view()->flushCompositingStateIncludingSubframes(); 262 m_nonCompositedContentLayer-> syncCompositingStateForThisLayerOnly();262 m_nonCompositedContentLayer->flushCompositingStateForThisLayerOnly(); 263 263 if (m_pageOverlayLayer) 264 m_pageOverlayLayer-> syncCompositingStateForThisLayerOnly();265 266 m_rootLayer-> syncCompositingStateForThisLayerOnly();264 m_pageOverlayLayer->flushCompositingStateForThisLayerOnly(); 265 266 m_rootLayer->flushCompositingStateForThisLayerOnly(); 267 267 268 268 if (m_shouldSyncRootLayer) { … … 515 515 } 516 516 517 void LayerTreeCoordinator::notify SyncRequired(const WebCore::GraphicsLayer*)517 void LayerTreeCoordinator::notifyFlushRequired(const WebCore::GraphicsLayer*) 518 518 { 519 519 } -
trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h
r130208 r130439 103 103 // GraphicsLayerClient 104 104 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time); 105 virtual void notify SyncRequired(const WebCore::GraphicsLayer*);105 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*); 106 106 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& clipRect); 107 107 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const; -
trunk/Source/WebKit2/WebProcess/WebPage/ca/LayerTreeHostCA.cpp
r130400 r130439 187 187 } 188 188 189 void LayerTreeHostCA::notify SyncRequired(const WebCore::GraphicsLayer*)189 void LayerTreeHostCA::notifyFlushRequired(const WebCore::GraphicsLayer*) 190 190 { 191 191 } … … 246 246 bool LayerTreeHostCA::flushPendingLayerChanges() 247 247 { 248 m_rootLayer-> syncCompositingStateForThisLayerOnly();249 m_nonCompositedContentLayer-> syncCompositingStateForThisLayerOnly();248 m_rootLayer->flushCompositingStateForThisLayerOnly(); 249 m_nonCompositedContentLayer->flushCompositingStateForThisLayerOnly(); 250 250 if (m_pageOverlayLayer) 251 m_pageOverlayLayer-> syncCompositingStateForThisLayerOnly();251 m_pageOverlayLayer->flushCompositingStateForThisLayerOnly(); 252 252 253 253 return m_webPage->corePage()->mainFrame()->view()->flushCompositingStateIncludingSubframes(); -
trunk/Source/WebKit2/WebProcess/WebPage/ca/LayerTreeHostCA.h
r116478 r130439 75 75 // GraphicsLayerClient 76 76 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time); 77 virtual void notify SyncRequired(const WebCore::GraphicsLayer*);77 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*); 78 78 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& clipRect); 79 79 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const; -
trunk/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
r130400 r130439 242 242 } 243 243 244 void LayerTreeHostGtk::notify SyncRequired(const WebCore::GraphicsLayer*)244 void LayerTreeHostGtk::notifyFlushRequired(const WebCore::GraphicsLayer*) 245 245 { 246 246 } … … 288 288 bool LayerTreeHostGtk::flushPendingLayerChanges() 289 289 { 290 m_rootLayer-> syncCompositingStateForThisLayerOnly();291 m_nonCompositedContentLayer-> syncCompositingStateForThisLayerOnly();290 m_rootLayer->flushCompositingStateForThisLayerOnly(); 291 m_nonCompositedContentLayer->flushCompositingStateForThisLayerOnly(); 292 292 if (m_pageOverlayLayer) 293 m_pageOverlayLayer-> syncCompositingStateForThisLayerOnly();293 m_pageOverlayLayer->flushCompositingStateForThisLayerOnly(); 294 294 295 295 return m_webPage->corePage()->mainFrame()->view()->flushCompositingStateIncludingSubframes(); -
trunk/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.h
r128907 r130439 76 76 // GraphicsLayerClient 77 77 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time); 78 virtual void notify SyncRequired(const WebCore::GraphicsLayer*);78 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*); 79 79 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& clipRect); 80 80 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const; -
trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h
r130400 r130439 71 71 // WebCore::GraphicsLayerClient 72 72 virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time) OVERRIDE; 73 virtual void notify SyncRequired(const WebCore::GraphicsLayer*) OVERRIDE;73 virtual void notifyFlushRequired(const WebCore::GraphicsLayer*) OVERRIDE; 74 74 virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& clipRect) OVERRIDE; 75 75 virtual bool showDebugBorders(const WebCore::GraphicsLayer*) const OVERRIDE; -
trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm
r130400 r130439 264 264 } 265 265 266 void TiledCoreAnimationDrawingArea::notify SyncRequired(const GraphicsLayer*)266 void TiledCoreAnimationDrawingArea::notifyFlushRequired(const GraphicsLayer*) 267 267 { 268 268 } … … 306 306 if (m_pageOverlayLayer) { 307 307 m_pageOverlayLayer->setNeedsDisplay(); 308 m_pageOverlayLayer-> syncCompositingStateForThisLayerOnly();308 m_pageOverlayLayer->flushCompositingStateForThisLayerOnly(); 309 309 } 310 310
Note: See TracChangeset
for help on using the changeset viewer.