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

Unified Diff: cc/blimp/compositor_state_deserializer_unittest.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 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/animation/animation_host_perftest.cc ('k') | cc/blimp/layer_tree_host_remote.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blimp/compositor_state_deserializer_unittest.cc
diff --git a/cc/blimp/compositor_state_deserializer_unittest.cc b/cc/blimp/compositor_state_deserializer_unittest.cc
index a8f7a262e250cb8515f9da10b84d4f2f44928064..abc846ae19052ee30a3b233c101c655b583d993a 100644
--- a/cc/blimp/compositor_state_deserializer_unittest.cc
+++ b/cc/blimp/compositor_state_deserializer_unittest.cc
@@ -94,11 +94,13 @@ class CompositorStateDeserializerTest
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner =
base::ThreadTaskRunnerHandle::Get();
+ animation_host_ = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
+
// Engine side setup.
LayerTreeHostRemote::InitParams params;
params.client = &layer_tree_host_client_remote_;
params.main_task_runner = main_task_runner;
- params.animation_host = AnimationHost::CreateMainInstance();
+ params.mutator_host = animation_host_.get();
params.remote_compositor_bridge =
base::MakeUnique<RemoteCompositorBridgeForTest>(
main_task_runner,
@@ -114,7 +116,8 @@ class CompositorStateDeserializerTest
// Client side setup.
layer_tree_host_in_process_ = FakeLayerTreeHost::Create(
- this, &task_graph_runner_, settings, CompositorMode::THREADED);
+ this, &task_graph_runner_, animation_host_.get(), settings,
+ CompositorMode::THREADED);
layer_tree_host_in_process_->InitializeForTesting(
TaskRunnerProvider::Create(base::ThreadTaskRunnerHandle::Get(),
base::ThreadTaskRunnerHandle::Get()),
@@ -131,6 +134,7 @@ class CompositorStateDeserializerTest
layer_tree_host_remote_ = nullptr;
compositor_state_deserializer_ = nullptr;
layer_tree_host_in_process_ = nullptr;
+ animation_host_ = nullptr;
}
void ProcessCompositorStateUpdate(
@@ -274,6 +278,7 @@ class CompositorStateDeserializerTest
StubLayerTreeHostClient layer_tree_host_client_remote_;
// Client setup.
+ std::unique_ptr<AnimationHost> animation_host_;
std::unique_ptr<FakeLayerTreeHost> layer_tree_host_in_process_;
std::unique_ptr<CompositorStateDeserializer> compositor_state_deserializer_;
TestTaskGraphRunner task_graph_runner_;
« no previous file with comments | « cc/animation/animation_host_perftest.cc ('k') | cc/blimp/layer_tree_host_remote.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698