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

Unified Diff: ui/ozone/demo/software_renderer.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
« no previous file with comments | « ui/gl/gl_surface_ozone.cc ('k') | ui/ozone/gpu/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/demo/software_renderer.cc
diff --git a/ui/ozone/demo/software_renderer.cc b/ui/ozone/demo/software_renderer.cc
index 45cbd7c6657e206d8884b1170b415710383c2b41..162d5e0e4b43c5e101d332085bbcdd40c1592dfa 100644
--- a/ui/ozone/demo/software_renderer.cc
+++ b/ui/ozone/demo/software_renderer.cc
@@ -7,6 +7,7 @@
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkSurface.h"
#include "ui/gfx/vsync_provider.h"
+#include "ui/ozone/public/ozone_platform.h"
dshwang 2015/06/05 08:12:02 this line is added.
#include "ui/ozone/public/surface_factory_ozone.h"
#include "ui/ozone/public/surface_ozone_canvas.h"
@@ -28,8 +29,9 @@ SoftwareRenderer::~SoftwareRenderer() {
}
bool SoftwareRenderer::Initialize() {
- software_surface_ =
- ui::SurfaceFactoryOzone::GetInstance()->CreateCanvasForWidget(widget_);
+ software_surface_ = ui::OzonePlatform::GetInstance()
+ ->GetSurfaceFactoryOzone()
+ ->CreateCanvasForWidget(widget_);
if (!software_surface_) {
LOG(ERROR) << "Failed to create software surface";
return false;
« no previous file with comments | « ui/gl/gl_surface_ozone.cc ('k') | ui/ozone/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698