Changeset 176748 in webkit
- Timestamp:
- Dec 3, 2014, 12:37:54 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp (modified) (2 diffs)
-
WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h (modified) (2 diffs)
-
WebKit/win/ChangeLog (modified) (1 diff)
-
WebKit/win/WebCoreSupport/AcceleratedCompositingContext.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r176734 r176748 1 2014-12-03 peavo@outlook.com <peavo@outlook.com> 2 3 [TexMap] Redundant method in GraphicsLayerTextureMapper. 4 https://bugs.webkit.org/show_bug.cgi?id=138005 5 6 Reviewed by Alex Christensen. 7 8 The TextureMapperLayer method descendantsOrSelfHaveRunningAnimations() can be used 9 instead of the GraphicsLayerTextureMapper method startedAnimation(). 10 11 * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp: 12 (WebCore::GraphicsLayerTextureMapper::GraphicsLayerTextureMapper): 13 (WebCore::GraphicsLayerTextureMapper::addAnimation): 14 * platform/graphics/texmap/GraphicsLayerTextureMapper.h: 15 1 16 2014-12-03 Jeremy Jones <jeremyj@apple.com> 2 17 -
trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
r176173 r176748 50 50 , m_animationStartTime(0) 51 51 , m_isScrollable(false) 52 , m_startedAnimation(false)53 52 { 54 53 } … … 578 577 notifyChange(AnimationChange); 579 578 notifyChange(AnimationStarted); 580 m_startedAnimation = true;581 579 return true; 582 580 } -
trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h
r176173 r176748 101 101 102 102 void setAnimations(const GraphicsLayerAnimations&); 103 bool startedAnimation() const { return m_startedAnimation; }104 103 105 104 private: … … 182 181 IntSize m_committedScrollOffset; 183 182 bool m_isScrollable; 184 bool m_startedAnimation;185 183 }; 186 184 -
trunk/Source/WebKit/win/ChangeLog
r176686 r176748 1 2014-12-03 peavo@outlook.com <peavo@outlook.com> 2 3 [TexMap] Redundant method in GraphicsLayerTextureMapper. 4 https://bugs.webkit.org/show_bug.cgi?id=138005 5 6 Reviewed by Alex Christensen. 7 8 The TextureMapperLayer method descendantsOrSelfHaveRunningAnimations() can be used 9 instead of the GraphicsLayerTextureMapper method startedAnimation(). 10 11 * WebCoreSupport/AcceleratedCompositingContext.cpp: 12 (AcceleratedCompositingContext::startedAnimation): 13 1 14 2014-12-02 Anders Carlsson <andersca@apple.com> 2 15 -
trunk/Source/WebKit/win/WebCoreSupport/AcceleratedCompositingContext.cpp
r176173 r176748 140 140 bool AcceleratedCompositingContext::startedAnimation(WebCore::GraphicsLayer* layer) 141 141 { 142 if (!layer )142 if (!layer || !downcast<GraphicsLayerTextureMapper>(*layer).layer()) 143 143 return false; 144 144 145 if (downcast<GraphicsLayerTextureMapper>(layer)->startedAnimation()) 146 return true; 147 148 for (auto childLayer : layer->children()) { 149 if (startedAnimation(childLayer)) 150 return true; 151 } 152 153 return false; 145 return downcast<GraphicsLayerTextureMapper>(*layer).layer()->descendantsOrSelfHaveRunningAnimations(); 154 146 } 155 147
Note:
See TracChangeset
for help on using the changeset viewer.