Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3949)

Unified Diff: cc/test/animation_test_common.cc

Issue 60083018: Don't PushProperties every commit for animating layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/animation_test_common.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/animation_test_common.cc
diff --git a/cc/test/animation_test_common.cc b/cc/test/animation_test_common.cc
index 22b7793a38225e004299f67275ab9b01a2040a2b..7ab26a5d8b548500392d6acf9b21ae4b0c8e0bf6 100644
--- a/cc/test/animation_test_common.cc
+++ b/cc/test/animation_test_common.cc
@@ -186,7 +186,8 @@ float FakeFloatTransition::GetValue(double time) const {
}
FakeLayerAnimationValueObserver::FakeLayerAnimationValueObserver()
- : opacity_(0.0f) {}
+ : opacity_(0.0f),
+ animation_waiting_for_deletion_(false) {}
FakeLayerAnimationValueObserver::~FakeLayerAnimationValueObserver() {}
@@ -204,6 +205,10 @@ void FakeLayerAnimationValueObserver::OnTransformAnimated(
transform_ = transform;
}
+void FakeLayerAnimationValueObserver::OnAnimationWaitingForDeletion() {
+ animation_waiting_for_deletion_ = true;
+}
+
bool FakeLayerAnimationValueObserver::IsActive() const {
return true;
}
« no previous file with comments | « cc/test/animation_test_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698