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

Unified Diff: ui/gl/gl_image_mac.cc

Issue 13543007: GLImage support for Android zero-copy pixel buffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/window/buffer/ Created 7 years, 9 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/gl/gl_image_mac.cc
diff --git a/ui/gl/gl_image_mac.cc b/ui/gl/gl_image_mac.cc
index a4b522aff62385d481d045a109c52f47bf4137b9..b488472b733430f4e17a85169fbd6bf17381dbeb 100644
--- a/ui/gl/gl_image_mac.cc
+++ b/ui/gl/gl_image_mac.cc
@@ -26,4 +26,21 @@ scoped_refptr<GLImage> GLImage::CreateGLImage(gfx::PluginWindowHandle window) {
}
}
+scoped_refptr<GLImage> GLImage::CreateGLImageForGraphicBuffer(
+ gfx::PixelBufferHandle buffer, const gfx::Size& size) {
+ TRACE_EVENT0("gpu", "GLImage::CreateGLImageForGraphicBuffer");
+ switch (GetGLImplementation()) {
+ case kGLImplementationOSMesaGL:
+ case kGLImplementationDesktopGL:
+ case kGLImplementationAppleGL: {
+ return NULL;
+ }
+ case kGLImplementationMockGL:
+ return new GLImageStub;
+ default:
+ NOTREACHED();
+ return NULL;
+ }
+}
+
} // namespace gfx
« ui/gl/gl_image_egl.cc ('K') | « ui/gl/gl_image_linux.cc ('k') | ui/gl/gl_image_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698