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

Unified Diff: cc/test/layer_tree_test.h

Issue 1010663002: CC Animations: Redirect all compositor animation requests to AnimationHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@introduce
Patch Set: Add ported unittests. Created 5 years, 8 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/layer_tree_test.h
diff --git a/cc/test/layer_tree_test.h b/cc/test/layer_tree_test.h
index ffba9e88c2d8026a8bee7e2f5999da6e8dffc91f..b17090c9682bc7bbbbce0cf53e7a23fbd6ca4545 100644
--- a/cc/test/layer_tree_test.h
+++ b/cc/test/layer_tree_test.h
@@ -13,6 +13,7 @@
#include "testing/gtest/include/gtest/gtest.h"
namespace cc {
+class AnimationPlayer;
class FakeExternalBeginFrameSource;
class FakeLayerTreeHostClient;
class FakeOutputSurface;
@@ -138,6 +139,12 @@ class LayerTreeTest : public testing::Test, public TestHooks {
void PostAddAnimationToMainThread(Layer* layer_to_receive_animation);
void PostAddInstantAnimationToMainThread(Layer* layer_to_receive_animation);
void PostAddLongAnimationToMainThread(Layer* layer_to_receive_animation);
+ void PostAddAnimationToMainThreadPlayer(
+ AnimationPlayer* player_to_receive_animation);
+ void PostAddInstantAnimationToMainThreadPlayer(
+ AnimationPlayer* player_to_receive_animation);
+ void PostAddLongAnimationToMainThreadPlayer(
+ AnimationPlayer* player_to_receive_animation);
void PostSetDeferCommitsToMainThread(bool defer_commits);
void PostSetNeedsCommitToMainThread();
void PostSetNeedsUpdateLayersToMainThread();
@@ -164,6 +171,9 @@ class LayerTreeTest : public testing::Test, public TestHooks {
virtual void DispatchAddAnimation(Layer* layer_to_receive_animation,
double animation_duration);
+ virtual void DispatchAddAnimationToPlayer(
+ AnimationPlayer* player_to_receive_animation,
+ double animation_duration);
void DispatchSetDeferCommits(bool defer_commits);
void DispatchSetNeedsCommit();
void DispatchSetNeedsUpdateLayers();
« cc/layers/layer.cc ('K') | « cc/layers/layer_utils.cc ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698