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

Unified Diff: cc/trees/layer_tree_host_unittest_no_message_loop.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: 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
Index: cc/trees/layer_tree_host_unittest_no_message_loop.cc
diff --git a/cc/trees/layer_tree_host_unittest_no_message_loop.cc b/cc/trees/layer_tree_host_unittest_no_message_loop.cc
index cd13240dc4c04f043cc29766f45c0609a24422a0..6a8ff76a59ed5a5ccf43e38b53d4b5c7e6339c8e 100644
--- a/cc/trees/layer_tree_host_unittest_no_message_loop.cc
+++ b/cc/trees/layer_tree_host_unittest_no_message_loop.cc
@@ -16,6 +16,7 @@
#include "cc/scheduler/begin_frame_source.h"
#include "cc/test/fake_delegated_renderer_layer.h"
#include "cc/test/test_context_provider.h"
+#include "cc/test/test_task_graph_runner.h"
#include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_host_client.h"
#include "cc/trees/layer_tree_host_single_thread_client.h"
@@ -109,6 +110,7 @@ class LayerTreeHostNoMessageLoopTest
LayerTreeHost::InitParams params;
params.client = this;
params.settings = &settings;
+ params.task_graph_runner = &task_graph_runner_;
layer_tree_host_ = LayerTreeHost::CreateSingleThreaded(this, &params);
layer_tree_host_->SetViewportSize(size_);
layer_tree_host_->SetRootLayer(root_layer_);
@@ -130,6 +132,7 @@ class LayerTreeHostNoMessageLoopTest
}
// All protected member variables are accessed only on |no_loop_thread_|.
+ TestTaskGraphRunner task_graph_runner_;
scoped_ptr<LayerTreeHost> layer_tree_host_;
scoped_refptr<Layer> root_layer_;

Powered by Google App Engine
This is Rietveld 408576698