From b7db1fe24ebd92ed43f995ee615f1b4b02cc7c43 Mon Sep 17 00:00:00 2001 From: khushalsagar Date: Wed, 11 Nov 2015 16:51:27 -0800 Subject: cc: Split Proxy and TaskRunnerProvider for the LayerTreeHost The LayerTreeHost uses the abstract part of Proxy to access the impl side of the compositor and the TaskRunnerProvider to access the main task runner and assertion checks. Decoupling these 2 will allow the LayerTreeHost used only for deserialization and commits on the client to be built without a proxy. This is a follow-up patch to: https://codereview.chromium.org/1418953002/ BUG=527200 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1419283002 Cr-Commit-Position: refs/heads/master@{#359196} --- cc/debug/micro_benchmark_controller_unittest.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cc/debug') diff --git a/cc/debug/micro_benchmark_controller_unittest.cc b/cc/debug/micro_benchmark_controller_unittest.cc index 9c5b0a5..c7138cd 100644 --- a/cc/debug/micro_benchmark_controller_unittest.cc +++ b/cc/debug/micro_benchmark_controller_unittest.cc @@ -32,7 +32,9 @@ class MicroBenchmarkControllerTest : public testing::Test { layer_tree_host_ = FakeLayerTreeHost::Create(&layer_tree_host_client_, &task_graph_runner_); layer_tree_host_->SetRootLayer(Layer::Create(LayerSettings())); - layer_tree_host_->InitializeForTesting(scoped_ptr(new FakeProxy)); + layer_tree_host_->InitializeForTesting( + TaskRunnerProvider::Create(nullptr, nullptr), + scoped_ptr(new FakeProxy)); } void TearDown() override { -- cgit v1.1