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

Unified Diff: content/browser/compositor/software_output_device_ozone_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
Index: content/browser/compositor/software_output_device_ozone_unittest.cc
diff --git a/content/browser/compositor/software_output_device_ozone_unittest.cc b/content/browser/compositor/software_output_device_ozone_unittest.cc
index 4f4eebc3736c4b1650dfa3fe5f51900f7f8c3984..8c072d2c09e05964e4c4fd794ea22616738310ae 100644
--- a/content/browser/compositor/software_output_device_ozone_unittest.cc
+++ b/content/browser/compositor/software_output_device_ozone_unittest.cc
@@ -86,14 +86,16 @@ SoftwareOutputDeviceOzoneTest::~SoftwareOutputDeviceOzoneTest() {
}
void SoftwareOutputDeviceOzoneTest::SetUp() {
- ui::ContextFactory* context_factory =
- ui::InitializeContextFactoryForTests(enable_pixel_output_);
+ ui::ContextFactory* context_factory = nullptr;
+ ui::ContextFactoryPrivate* context_factory_private = nullptr;
+ ui::InitializeContextFactoryForTests(enable_pixel_output_, &context_factory,
+ &context_factory_private);
const gfx::Size size(500, 400);
window_ = ui::OzonePlatform::GetInstance()->CreatePlatformWindow(
&window_delegate_, gfx::Rect(size));
- compositor_.reset(
- new ui::Compositor(context_factory, base::ThreadTaskRunnerHandle::Get()));
+ compositor_.reset(new ui::Compositor(context_factory, nullptr,
+ base::ThreadTaskRunnerHandle::Get()));
compositor_->SetAcceleratedWidget(window_delegate_.GetAcceleratedWidget());
compositor_->SetScaleAndSize(1.0f, size);

Powered by Google App Engine
This is Rietveld 408576698