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

Unified Diff: cc/test/fake_layer_tree_host.cc

Issue 1177033008: cc: Turn impl_side_painting and use_one_copy on in LayerTreeSettings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implon: fixwebkittests Created 5 years, 6 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/test/fake_layer_tree_host.h ('k') | cc/test/fake_ui_resource_layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_layer_tree_host.cc
diff --git a/cc/test/fake_layer_tree_host.cc b/cc/test/fake_layer_tree_host.cc
index 97e7aefc9bc583917dc3950ac01fb4ae7d7a9167..09f2fc9c17cd9c1e9729ce63eb5dee2a8df66fb1 100644
--- a/cc/test/fake_layer_tree_host.cc
+++ b/cc/test/fake_layer_tree_host.cc
@@ -4,28 +4,36 @@
#include "cc/test/fake_layer_tree_host.h"
+#include "cc/test/test_task_graph_runner.h"
+
namespace cc {
FakeLayerTreeHost::FakeLayerTreeHost(FakeLayerTreeHostClient* client,
LayerTreeHost::InitParams* params)
: LayerTreeHost(params),
client_(client),
- host_impl_(*params->settings, &proxy_, &manager_, nullptr),
+ host_impl_(*params->settings,
+ &proxy_,
+ &manager_,
+ params->task_graph_runner),
needs_commit_(false) {
client_->SetLayerTreeHost(this);
}
scoped_ptr<FakeLayerTreeHost> FakeLayerTreeHost::Create(
- FakeLayerTreeHostClient* client) {
+ FakeLayerTreeHostClient* client,
+ TestTaskGraphRunner* task_graph_runner) {
LayerTreeSettings settings;
- return Create(client, settings);
+ return Create(client, task_graph_runner, settings);
}
scoped_ptr<FakeLayerTreeHost> FakeLayerTreeHost::Create(
FakeLayerTreeHostClient* client,
+ TestTaskGraphRunner* task_graph_runner,
const LayerTreeSettings& settings) {
LayerTreeHost::InitParams params;
params.client = client;
params.settings = &settings;
+ params.task_graph_runner = task_graph_runner;
return make_scoped_ptr(new FakeLayerTreeHost(client, &params));
}
« no previous file with comments | « cc/test/fake_layer_tree_host.h ('k') | cc/test/fake_ui_resource_layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698