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

Unified Diff: cc/animation/animation_host_perftest.cc

Issue 2174653002: cc: Break up with FakeLayerTreeHostClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fakeoutputsurface
Patch Set: lthclient-tests: . Created 4 years, 5 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
« no previous file with comments | « cc/BUILD.gn ('k') | cc/cc_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_host_perftest.cc
diff --git a/cc/animation/animation_host_perftest.cc b/cc/animation/animation_host_perftest.cc
index 59249f2626791770d1a6e870c6d25f4a3d744282..8d855e5d4d66b76423b92b3fdc4bafccc82cca77 100644
--- a/cc/animation/animation_host_perftest.cc
+++ b/cc/animation/animation_host_perftest.cc
@@ -14,6 +14,7 @@
#include "cc/test/fake_layer_tree_host.h"
#include "cc/test/fake_layer_tree_host_client.h"
#include "cc/test/fake_layer_tree_host_impl.h"
+#include "cc/test/stub_layer_tree_host_single_thread_client.h"
#include "cc/test/test_task_graph_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_test.h"
@@ -27,7 +28,7 @@ class AnimationHostPerfTest : public testing::Test {
layer_tree_host_ =
FakeLayerTreeHost::Create(&fake_client_, &task_graph_runner_, settings);
layer_tree_host_->InitializeSingleThreaded(
- &fake_client_, base::ThreadTaskRunnerHandle::Get(), nullptr);
+ &single_thread_client_, base::ThreadTaskRunnerHandle::Get(), nullptr);
root_layer_ = Layer::Create();
layer_tree_host_->SetRootLayer(root_layer_);
@@ -112,13 +113,14 @@ class AnimationHostPerfTest : public testing::Test {
}
protected:
+ StubLayerTreeHostSingleThreadClient single_thread_client_;
+ FakeLayerTreeHostClient fake_client_;
std::unique_ptr<FakeLayerTreeHost> layer_tree_host_;
scoped_refptr<Layer> root_layer_;
LayerImpl* root_layer_impl_;
LapTimer timer_;
TestTaskGraphRunner task_graph_runner_;
- FakeLayerTreeHostClient fake_client_;
};
TEST_F(AnimationHostPerfTest, Push1000PlayersPropertiesTo) {
« no previous file with comments | « cc/BUILD.gn ('k') | cc/cc_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698