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

Unified Diff: cc/trees/layer_tree_host_unittest_serialization.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/trees/layer_tree_host_unittest_scroll.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_serialization.cc
diff --git a/cc/trees/layer_tree_host_unittest_serialization.cc b/cc/trees/layer_tree_host_unittest_serialization.cc
index 7cab9ba0ca4271e57ec0d155fb01f27030982a6b..5d4b7b37ebb3eb719daefe2ed4bfb8a2d9fb5bec 100644
--- a/cc/trees/layer_tree_host_unittest_serialization.cc
+++ b/cc/trees/layer_tree_host_unittest_serialization.cc
@@ -7,6 +7,7 @@
#include <memory>
#include "base/memory/ptr_util.h"
+#include "cc/animation/animation_host.h"
#include "cc/layers/empty_content_layer_client.h"
#include "cc/layers/heads_up_display_layer.h"
#include "cc/layers/layer.h"
@@ -69,12 +70,16 @@ class LayerTreeHostSerializationTest : public testing::Test {
protected:
void SetUp() override {
LayerTreeSettings settings;
+ animation_host_src_ = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
layer_tree_host_src_ = FakeLayerTreeHost::Create(
- &client_src_, &task_graph_runner_src_, settings,
- CompositorMode::SINGLE_THREADED, image_serialization_processor_.get());
+ &client_src_, &task_graph_runner_src_, animation_host_src_.get(),
+ settings, CompositorMode::SINGLE_THREADED,
+ image_serialization_processor_.get());
+ animation_host_dst_ = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
layer_tree_host_dst_ = FakeLayerTreeHost::Create(
- &client_dst_, &task_graph_runner_dst_, settings,
- CompositorMode::SINGLE_THREADED, image_serialization_processor_.get());
+ &client_dst_, &task_graph_runner_dst_, animation_host_dst_.get(),
+ settings, CompositorMode::SINGLE_THREADED,
+ image_serialization_processor_.get());
layer_tree_host_src_->InitializePictureCacheForTesting();
layer_tree_host_dst_->InitializePictureCacheForTesting();
}
@@ -416,10 +421,12 @@ class LayerTreeHostSerializationTest : public testing::Test {
TestTaskGraphRunner task_graph_runner_src_;
FakeLayerTreeHostClient client_src_;
+ std::unique_ptr<AnimationHost> animation_host_src_;
std::unique_ptr<FakeLayerTreeHost> layer_tree_host_src_;
TestTaskGraphRunner task_graph_runner_dst_;
FakeLayerTreeHostClient client_dst_;
+ std::unique_ptr<AnimationHost> animation_host_dst_;
std::unique_ptr<FakeLayerTreeHost> layer_tree_host_dst_;
};
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698