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

Unified Diff: content/browser/compositor/software_output_device_ozone.cc

Issue 1171513002: Reland of Revert of ozone: Remove singleton pattern for SurfaceFactoryOzone. (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: content/browser/compositor/software_output_device_ozone.cc
diff --git a/content/browser/compositor/software_output_device_ozone.cc b/content/browser/compositor/software_output_device_ozone.cc
index 98c111d5cc8c975771c0ed4a1f6d57829f380337..0d1edd0300bf3cd8ea251f645e2344a28c2d4702 100644
--- a/content/browser/compositor/software_output_device_ozone.cc
+++ b/content/browser/compositor/software_output_device_ozone.cc
@@ -7,6 +7,7 @@
#include "ui/compositor/compositor.h"
#include "ui/gfx/skia_util.h"
#include "ui/gfx/vsync_provider.h"
+#include "ui/ozone/public/ozone_platform.h"
#include "ui/ozone/public/surface_factory_ozone.h"
#include "ui/ozone/public/surface_ozone_canvas.h"
@@ -14,7 +15,8 @@ namespace content {
SoftwareOutputDeviceOzone::SoftwareOutputDeviceOzone(ui::Compositor* compositor)
: compositor_(compositor) {
- ui::SurfaceFactoryOzone* factory = ui::SurfaceFactoryOzone::GetInstance();
+ ui::SurfaceFactoryOzone* factory =
+ ui::OzonePlatform::GetInstance()->GetSurfaceFactoryOzone();
surface_ozone_ = factory->CreateCanvasForWidget(compositor_->widget());
« no previous file with comments | « no previous file | content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc » ('j') | ui/ozone/demo/software_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698