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

Unified Diff: ui/compositor/layer_owner_unittest.cc

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 years 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 | « ui/compositor/layer_animator_unittest.cc ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_owner_unittest.cc
diff --git a/ui/compositor/layer_owner_unittest.cc b/ui/compositor/layer_owner_unittest.cc
index 5e81fe98426e511eaa21bd0d059383d136ee5125..7675806d858fbb21e811545587f108606ff0f90e 100644
--- a/ui/compositor/layer_owner_unittest.cc
+++ b/ui/compositor/layer_owner_unittest.cc
@@ -71,10 +71,14 @@ void LayerOwnerTestWithCompositor::SetUp() {
scoped_refptr<base::SingleThreadTaskRunner> task_runner =
new base::NullTaskRunner();
- ui::ContextFactory* context_factory =
- ui::InitializeContextFactoryForTests(false);
+ ui::ContextFactory* context_factory = nullptr;
+ ui::ContextFactoryPrivate* context_factory_private = nullptr;
- compositor_.reset(new ui::Compositor(context_factory, task_runner));
+ ui::InitializeContextFactoryForTests(false, &context_factory,
+ &context_factory_private);
+
+ compositor_.reset(new ui::Compositor(context_factory, context_factory_private,
+ task_runner));
compositor_->SetAcceleratedWidget(gfx::kNullAcceleratedWidget);
}
« no previous file with comments | « ui/compositor/layer_animator_unittest.cc ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698