Changeset 152227 in webkit
- Timestamp:
- Jul 1, 2013 9:32:07 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r152223 r152227 1 2013-07-01 Noam Rosenthal <noam@webkit.org> 2 3 Avoid calling RenderLayerBacking::resetContentsRect() if possible 4 https://bugs.webkit.org/show_bug.cgi?id=118217 5 6 Reviewed by Simon Fraser. 7 8 Call resetContentsRect() only if the layer has a contentsLayer. 9 Otherwise the contentsRect is redundant for the GraphicsLayer. 10 11 No new tests - optimization only. This is covered by plenty of existing 12 tests in webgl/ and compositing/. 13 14 * platform/graphics/texmap/GraphicsLayerTextureMapper.h: 15 (WebCore::GraphicsLayerTextureMapper::hasContentsLayer): 16 * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h: 17 Added hasContentsLayer calls for TextureMapper/CoordinatedGraphics 18 19 * rendering/RenderLayerBacking.cpp: 20 (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): 21 1 22 2013-07-01 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 23 -
trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h
r149813 r152227 77 77 virtual void flushCompositingStateForThisLayerOnly(); 78 78 virtual void setName(const String& name); 79 virtual bool hasContentsLayer() const { return m_contentsLayer; } 79 80 virtual PlatformLayer* platformLayer() const { return m_contentsLayer; } 80 81 -
trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h
r151262 r152227 111 111 virtual void suspendAnimations(double time) OVERRIDE; 112 112 virtual void resumeAnimations() OVERRIDE; 113 virtual bool hasContentsLayer() const OVERRIDE { return m_canvasPlatformLayer || m_compositedImage; } 113 114 114 115 void syncPendingStateChangesIncludingSubLayers(); -
trunk/Source/WebCore/rendering/RenderLayerBacking.cpp
r152213 r152227 862 862 bool didUpdateContentsRect = false; 863 863 updateDirectlyCompositedContents(isSimpleContainer, didUpdateContentsRect); 864 if (!didUpdateContentsRect )864 if (!didUpdateContentsRect && m_graphicsLayer->hasContentsLayer()) 865 865 resetContentsRect(); 866 866
Note: See TracChangeset
for help on using the changeset viewer.