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

Unified Diff: cc/trees/occlusion_tracker_perftest.cc

Issue 1419283002: cc: Split Proxy and TaskRunnerProvider for the LayerTreeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 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_proxy.cc ('k') | cc/trees/proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/occlusion_tracker_perftest.cc
diff --git a/cc/trees/occlusion_tracker_perftest.cc b/cc/trees/occlusion_tracker_perftest.cc
index 5472bba2269f4e4e926d39846ce887632b9bc4b1..7e4a8f8bca73e5a6a5b68b6a2c7f383d3da4de88 100644
--- a/cc/trees/occlusion_tracker_perftest.cc
+++ b/cc/trees/occlusion_tracker_perftest.cc
@@ -9,6 +9,7 @@
#include "cc/debug/lap_timer.h"
#include "cc/layers/layer_iterator.h"
#include "cc/layers/solid_color_layer_impl.h"
+#include "cc/test/fake_impl_task_runner_provider.h"
#include "cc/test/fake_layer_tree_host_impl_client.h"
#include "cc/test/fake_output_surface.h"
#include "cc/test/fake_proxy.h"
@@ -34,14 +35,12 @@ class OcclusionTrackerPerfTest : public testing::Test {
: timer_(kWarmupRuns,
base::TimeDelta::FromMilliseconds(kTimeLimitMillis),
kTimeCheckInterval),
- proxy_(base::ThreadTaskRunnerHandle::Get(), nullptr),
- impl_(&proxy_),
output_surface_(FakeOutputSurface::Create3d()) {}
void CreateHost() {
LayerTreeSettings settings;
- host_impl_ = LayerTreeHostImpl::Create(settings, &client_, &proxy_, &stats_,
- &shared_bitmap_manager_, nullptr,
- &task_graph_runner_, 1);
+ host_impl_ = LayerTreeHostImpl::Create(
+ settings, &client_, &impl_task_runner_provider_, &stats_,
+ &shared_bitmap_manager_, nullptr, &task_graph_runner_, 1);
host_impl_->SetVisible(true);
host_impl_->InitializeRenderer(output_surface_.get());
@@ -68,8 +67,7 @@ class OcclusionTrackerPerfTest : public testing::Test {
LapTimer timer_;
std::string test_name_;
FakeLayerTreeHostImplClient client_;
- FakeProxy proxy_;
- DebugScopedSetImplThread impl_;
+ FakeImplTaskRunnerProvider impl_task_runner_provider_;
FakeRenderingStatsInstrumentation stats_;
TestSharedBitmapManager shared_bitmap_manager_;
TestTaskGraphRunner task_graph_runner_;
« no previous file with comments | « cc/trees/layer_tree_host_unittest_proxy.cc ('k') | cc/trees/proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698