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

Unified Diff: cc/layers/layer_unittest.cc

Issue 400773002: cc: Parameterize the main thread task runner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WebView fix. Created 6 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/layers/layer_perftest.cc ('k') | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_unittest.cc
diff --git a/cc/layers/layer_unittest.cc b/cc/layers/layer_unittest.cc
index ba77513370e4d5350e970a60864b690abb324d3f..246ec43420fc3bafcda881af341ee34f54b76a00 100644
--- a/cc/layers/layer_unittest.cc
+++ b/cc/layers/layer_unittest.cc
@@ -41,7 +41,7 @@ class MockLayerTreeHost : public LayerTreeHost {
public:
explicit MockLayerTreeHost(FakeLayerTreeHostClient* client)
: LayerTreeHost(client, NULL, LayerTreeSettings()) {
- InitializeSingleThreaded(client);
+ InitializeSingleThreaded(client, base::MessageLoopProxy::current());
}
MOCK_METHOD0(SetNeedsCommit, void());
@@ -873,16 +873,21 @@ class LayerTreeHostFactory {
shared_bitmap_manager_(new TestSharedBitmapManager()) {}
scoped_ptr<LayerTreeHost> Create() {
- return LayerTreeHost::CreateSingleThreaded(&client_,
- &client_,
- shared_bitmap_manager_.get(),
- LayerTreeSettings()).Pass();
+ return LayerTreeHost::CreateSingleThreaded(
+ &client_,
+ &client_,
+ shared_bitmap_manager_.get(),
+ LayerTreeSettings(),
+ base::MessageLoopProxy::current()).Pass();
}
scoped_ptr<LayerTreeHost> Create(LayerTreeSettings settings) {
return LayerTreeHost::CreateSingleThreaded(
- &client_, &client_, shared_bitmap_manager_.get(), settings)
- .Pass();
+ &client_,
+ &client_,
+ shared_bitmap_manager_.get(),
+ settings,
+ base::MessageLoopProxy::current()).Pass();
}
private:
« no previous file with comments | « cc/layers/layer_perftest.cc ('k') | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698