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

Unified Diff: blimp/client/test/compositor/blimp_compositor_with_fake_host.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
Index: blimp/client/test/compositor/blimp_compositor_with_fake_host.cc
diff --git a/blimp/client/test/compositor/blimp_compositor_with_fake_host.cc b/blimp/client/test/compositor/blimp_compositor_with_fake_host.cc
index 83902cff6b124bb469f188ef0eae72a9520d545f..b8e74a679472ebc2eb08df8a305b6554fac7349b 100644
--- a/blimp/client/test/compositor/blimp_compositor_with_fake_host.cc
+++ b/blimp/client/test/compositor/blimp_compositor_with_fake_host.cc
@@ -4,6 +4,7 @@
#include "blimp/client/test/compositor/blimp_compositor_with_fake_host.h"
+#include "cc/animation/animation_host.h"
#include "cc/proto/compositor_message.pb.h"
#include "cc/test/fake_proxy.h"
@@ -44,10 +45,12 @@ BlimpCompositorWithFakeHost::CreateFakeUpdate(
std::unique_ptr<cc::LayerTreeHostInProcess>
BlimpCompositorWithFakeHost::CreateLayerTreeHost() {
+ DCHECK(animation_host());
+
cc::LayerTreeSettings settings;
- std::unique_ptr<cc::FakeLayerTreeHost> host =
- cc::FakeLayerTreeHost::Create(&fake_client_, &task_graph_runner_,
- settings, cc::CompositorMode::THREADED);
+ std::unique_ptr<cc::FakeLayerTreeHost> host = cc::FakeLayerTreeHost::Create(
+ &fake_client_, &task_graph_runner_, animation_host(), settings,
+ cc::CompositorMode::THREADED);
host->InitializeForTesting(
cc::TaskRunnerProvider::Create(base::ThreadTaskRunnerHandle::Get(),
base::ThreadTaskRunnerHandle::Get()),
« no previous file with comments | « blimp/client/support/resources/translations/blimp_strings_sw.xtb ('k') | blimp/engine/app/ui/blimp_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698