Changeset 88247 in webkit


Ignore:
Timestamp:
Jun 7, 2011 9:58:22 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-06-07 Young Han Lee <joybro@company100.net>

Reviewed by Kenneth Rohde Christiansen.

[Texmap][Qt] Accelerated animation is not paused properly.
https://bugs.webkit.org/show_bug.cgi?id=61446

The transform matrix of an accelerated animation shouldn't be synced with the matrix of the GraphicsLayer when the animation is paused.

  • animations/play-state-paused-expected.png: Added.
  • animations/play-state-paused-expected.txt: Added.
  • animations/play-state-paused.html: Added.

2011-06-07 Young Han Lee <joybro@company100.net>

Reviewed by Kenneth Rohde Christiansen.

[Texmap][Qt] Accelerated animation is not paused properly.
https://bugs.webkit.org/show_bug.cgi?id=61446

The transform matrix of an accelerated animation shouldn't be synced with the matrix of the GraphicsLayer when the animation is paused.

Test: animations/play-state-paused.html

  • platform/graphics/texmap/TextureMapperNode.cpp: (WebCore::TextureMapperNode::syncCompositingStateSelf): (WebCore::TextureMapperNode::hasOpacityAnimation): (WebCore::TextureMapperNode::hasTransformAnimation):
  • platform/graphics/texmap/TextureMapperNode.h:
Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r88243 r88247  
     12011-06-07  Young Han Lee  <joybro@company100.net>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Texmap][Qt] Accelerated animation is not paused properly.
     6        https://bugs.webkit.org/show_bug.cgi?id=61446
     7
     8        The transform matrix of an accelerated animation shouldn't be synced with the matrix of the GraphicsLayer when the animation is paused.
     9
     10        * animations/play-state-paused-expected.png: Added.
     11        * animations/play-state-paused-expected.txt: Added.
     12        * animations/play-state-paused.html: Added.
     13
    1142011-06-07  Sheriff Bot  <webkit.review.bot@gmail.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r88245 r88247  
     12011-06-07  Young Han Lee  <joybro@company100.net>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Texmap][Qt] Accelerated animation is not paused properly.
     6        https://bugs.webkit.org/show_bug.cgi?id=61446
     7
     8        The transform matrix of an accelerated animation shouldn't be synced with the matrix of the GraphicsLayer when the animation is paused.
     9
     10        Test: animations/play-state-paused.html
     11
     12        * platform/graphics/texmap/TextureMapperNode.cpp:
     13        (WebCore::TextureMapperNode::syncCompositingStateSelf):
     14        (WebCore::TextureMapperNode::hasOpacityAnimation):
     15        (WebCore::TextureMapperNode::hasTransformAnimation):
     16        * platform/graphics/texmap/TextureMapperNode.h:
     17
    1182011-06-07  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
    219
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperNode.cpp

    r86276 r88247  
    654654        m_currentContent.needsDisplayRect.unite(pendingContent.needsDisplayRect);
    655655
    656     if (!hasRunningOpacityAnimation())
     656    if (!hasOpacityAnimation())
    657657        m_opacity = m_state.opacity;
    658     if (!hasRunningTransformAnimation())
     658    if (!hasTransformAnimation())
    659659        m_transforms.base = m_state.transform;
    660660}
     
    816816}
    817817
    818 bool TextureMapperNode::hasRunningOpacityAnimation() const
     818bool TextureMapperNode::hasOpacityAnimation() const
    819819{
    820820    for (size_t i = 0; i < m_animations.size(); ++i) {
    821821        const TextureMapperAnimation& animation = *m_animations[i].get();
    822         if (!animation.paused && animation.keyframes.property() == AnimatedPropertyOpacity)
     822        if (animation.keyframes.property() == AnimatedPropertyOpacity)
    823823            return true;
    824824    }
     
    826826}
    827827
    828 bool TextureMapperNode::hasRunningTransformAnimation() const
     828bool TextureMapperNode::hasTransformAnimation() const
    829829{
    830830    for (size_t i = 0; i < m_animations.size(); ++i) {
    831831        const TextureMapperAnimation& animation = *m_animations[i].get();
    832         if (!animation.paused && animation.keyframes.property() == AnimatedPropertyWebkitTransform)
     832        if (animation.keyframes.property() == AnimatedPropertyWebkitTransform)
    833833            return true;
    834834    }
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperNode.h

    r86276 r88247  
    178178    void applyOpacityAnimation(float fromOpacity, float toOpacity, double);
    179179    void applyTransformAnimation(const TextureMapperAnimation&, const TransformOperations* start, const TransformOperations* end, double);
    180     bool hasRunningOpacityAnimation() const;
    181     bool hasRunningTransformAnimation() const;
     180    bool hasOpacityAnimation() const;
     181    bool hasTransformAnimation() const;
    182182
    183183    struct TransformData {
Note: See TracChangeset for help on using the changeset viewer.