⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176748 in webkit


Ignore:
Timestamp:
Dec 3, 2014, 12:37:54 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[TexMap] Redundant method in GraphicsLayerTextureMapper.
https://bugs.webkit.org/show_bug.cgi?id=138005

Patch by peavo@outlook.com <peavo@outlook.com> on 2014-12-03
Reviewed by Alex Christensen.

The TextureMapperLayer method descendantsOrSelfHaveRunningAnimations() can be used
instead of the GraphicsLayerTextureMapper method startedAnimation().

Source/WebCore:

  • platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:

(WebCore::GraphicsLayerTextureMapper::GraphicsLayerTextureMapper):
(WebCore::GraphicsLayerTextureMapper::addAnimation):

  • platform/graphics/texmap/GraphicsLayerTextureMapper.h:

Source/WebKit/win:

  • WebCoreSupport/AcceleratedCompositingContext.cpp:

(AcceleratedCompositingContext::startedAnimation):

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176734 r176748  
     12014-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
    1162014-12-03  Jeremy Jones  <jeremyj@apple.com>
    217
  • trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp

    r176173 r176748  
    5050    , m_animationStartTime(0)
    5151    , m_isScrollable(false)
    52     , m_startedAnimation(false)
    5352{
    5453}
     
    578577    notifyChange(AnimationChange);
    579578    notifyChange(AnimationStarted);
    580     m_startedAnimation = true;
    581579    return true;
    582580}
  • trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h

    r176173 r176748  
    101101
    102102    void setAnimations(const GraphicsLayerAnimations&);
    103     bool startedAnimation() const { return m_startedAnimation; }
    104103
    105104private:
     
    182181    IntSize m_committedScrollOffset;
    183182    bool m_isScrollable;
    184     bool m_startedAnimation;
    185183};
    186184
  • trunk/Source/WebKit/win/ChangeLog

    r176686 r176748  
     12014-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
    1142014-12-02  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebKit/win/WebCoreSupport/AcceleratedCompositingContext.cpp

    r176173 r176748  
    140140bool AcceleratedCompositingContext::startedAnimation(WebCore::GraphicsLayer* layer)
    141141{
    142     if (!layer)
     142    if (!layer || !downcast<GraphicsLayerTextureMapper>(*layer).layer())
    143143        return false;
    144144
    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();
    154146}
    155147
Note: See TracChangeset for help on using the changeset viewer.