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

Unified Diff: cc/test/animation_timelines_test_common.cc

Issue 2261113002: CC Animation: Introduce some dirty flags to optimize PushProperties on commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add more tests. Created 4 years, 4 months 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
Index: cc/test/animation_timelines_test_common.cc
diff --git a/cc/test/animation_timelines_test_common.cc b/cc/test/animation_timelines_test_common.cc
index 5f640b8091f5e53e2cd50cd894511cb12428a887..df07a49744f9a33fbb05ae33015f05e27083273d 100644
--- a/cc/test/animation_timelines_test_common.cc
+++ b/cc/test/animation_timelines_test_common.cc
@@ -518,4 +518,16 @@ int AnimationTimelinesTest::NextTestLayerId() {
return next_test_layer_id_;
}
+void AnimationTimelinesTest::ExpectPlayerTimelineNeedsPushProperties(
ajuma 2016/08/24 15:52:37 Putting this in a function rather than a macro mea
loyso (OOO) 2016/08/25 00:38:24 Failures in each particular are very rare - those
loyso (OOO) 2016/08/25 00:55:50 I can replace it with CHECK so it crashes and show
danakj 2016/08/25 01:05:59 You can return false from this function if any exp
loyso (OOO) 2016/08/25 03:59:02 Done.
+ bool needs_push_properties) {
+ DCHECK(player_);
+ DCHECK(timeline_);
+
+ EXPECT_EQ(needs_push_properties, player_->needs_push_properties());
+ EXPECT_EQ(needs_push_properties, timeline_->needs_push_properties());
+ if (player_->element_animations())
+ EXPECT_EQ(needs_push_properties,
+ player_->element_animations()->needs_push_properties());
+}
+
} // namespace cc
« cc/test/animation_test_common.cc ('K') | « cc/test/animation_timelines_test_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698