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

Unified Diff: ui/ozone/demo/surfaceless_gl_renderer.cc

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed nits Created 5 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
Index: ui/ozone/demo/surfaceless_gl_renderer.cc
diff --git a/ui/ozone/demo/surfaceless_gl_renderer.cc b/ui/ozone/demo/surfaceless_gl_renderer.cc
index 0eaecb698175d398ac5b881a4d67f1af39c1d68e..dde766f795b06152455ba578d2dc7aa6e4827d10 100644
--- a/ui/ozone/demo/surfaceless_gl_renderer.cc
+++ b/ui/ozone/demo/surfaceless_gl_renderer.cc
@@ -38,8 +38,8 @@ bool SurfacelessGlRenderer::BufferWrapper::Initialize(
scoped_refptr<NativePixmap> pixmap =
OzonePlatform::GetInstance()
->GetSurfaceFactoryOzone()
- ->CreateNativePixmap(widget, size, SurfaceFactoryOzone::RGBX_8888,
- SurfaceFactoryOzone::SCANOUT);
+ ->CreateNativePixmap(widget, size, NATIVE_PIXMAP_FORMAT_RGBX_8888,
+ NATIVE_PIXMAP_USAGE_SCANOUT);
scoped_refptr<gfx::GLImageOzoneNativePixmap> image(
new gfx::GLImageOzoneNativePixmap(size, GL_RGB));
if (!image->Initialize(pixmap.get(), gfx::GpuMemoryBuffer::RGBX_8888)) {

Powered by Google App Engine
This is Rietveld 408576698