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

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

Issue 1263913002: FREEZE.unindexed Base URL: https://chromium.googlesource.com/chromium/src.git@textures3
Patch Set: Created 5 years, 4 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5e7158849ac0ad6e671142e10f8a9e6a433c7d51..a0c8375b39716e9ca5d6f9ea953174c2ebe27f92 100644
--- a/ui/ozone/demo/surfaceless_gl_renderer.cc
+++ b/ui/ozone/demo/surfaceless_gl_renderer.cc
@@ -5,6 +5,7 @@
#include "ui/ozone/demo/surfaceless_gl_renderer.h"
#include "base/bind.h"
+#include "content/common/generic_shared_memory_id_generator.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_image.h"
@@ -42,7 +43,8 @@ bool SurfacelessGlRenderer::BufferWrapper::Initialize(
gfx::BufferUsage::SCANOUT);
scoped_refptr<gfx::GLImageOzoneNativePixmap> image(
new gfx::GLImageOzoneNativePixmap(size, GL_RGB));
- if (!image->Initialize(pixmap.get(), gfx::BufferFormat::RGBX_8888)) {
+ if (!image->Initialize(GetNextGenericSharedMemoryId(), pixmap.get(),
+ gfx::GpuMemoryBuffer::RGBX_8888)) {
LOG(ERROR) << "Failed to create GLImage";
return false;
}
« no previous file with comments | « ui/gl/gl_surface_ozone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698