summaryrefslogtreecommitdiffstats
path: root/cc/test/animation_test_common.h
diff options
context:
space:
mode:
authorajuma <ajuma@chromium.org>2015-08-04 08:55:29 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-04 15:56:24 +0000
commitcaaa9b32c99b1505f89240b76ca2e2151c1bdb85 (patch)
treebdca81103e7b0b2405ae19b9fded603ce309b30b /cc/test/animation_test_common.h
parent2989093974ca3b71b6a0a51aac0eec044797ef7a (diff)
downloadchromium_src-caaa9b32c99b1505f89240b76ca2e2151c1bdb85.zip
chromium_src-caaa9b32c99b1505f89240b76ca2e2151c1bdb85.tar.gz
chromium_src-caaa9b32c99b1505f89240b76ca2e2151c1bdb85.tar.bz2
cc: Keep the transform tree's to_screen_is_animated updated
The transform tree's to_screen_is_animated is currently set during tree building but is never updated. This CL updates this value as transform animations change, and makes VerifyPropertyTreeValuesForLayer verify that this matches CDP's screen_space_transform_is_animating. BUG=509673 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1227863009 Cr-Commit-Position: refs/heads/master@{#341728}
Diffstat (limited to 'cc/test/animation_test_common.h')
-rw-r--r--cc/test/animation_test_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/test/animation_test_common.h b/cc/test/animation_test_common.h
index 42512fc..29d66b7 100644
--- a/cc/test/animation_test_common.h
+++ b/cc/test/animation_test_common.h
@@ -85,6 +85,7 @@ class FakeLayerAnimationValueObserver : public LayerAnimationValueObserver {
void OnTransformAnimated(const gfx::Transform& transform) override;
void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset) override;
void OnAnimationWaitingForDeletion() override;
+ void OnTransformIsPotentiallyAnimatingChanged(bool is_animating) override;
bool IsActive() const override;
const FilterOperations& filters() const { return filters_; }
@@ -96,12 +97,15 @@ class FakeLayerAnimationValueObserver : public LayerAnimationValueObserver {
return animation_waiting_for_deletion_;
}
+ bool transform_is_animating() { return transform_is_animating_; }
+
private:
FilterOperations filters_;
float opacity_;
gfx::Transform transform_;
gfx::ScrollOffset scroll_offset_;
bool animation_waiting_for_deletion_;
+ bool transform_is_animating_;
};
class FakeInactiveLayerAnimationValueObserver