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

Unified Diff: ui/gl/gl_image.h

Issue 13543007: GLImage support for Android zero-copy pixel buffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/PixelBuffer/GpuMemoryBuffer/ Created 7 years, 8 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.gyp ('k') | ui/gl/gl_image_android.cc » ('j') | ui/gl/gl_image_egl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image.h
diff --git a/ui/gl/gl_image.h b/ui/gl/gl_image.h
index 8df7c71f2fcc999a67ff1ed237edd7d6c90a5b9d..d361f0bb5bd800306cd74e03f55449c24b160af0 100644
--- a/ui/gl/gl_image.h
+++ b/ui/gl/gl_image.h
@@ -8,7 +8,6 @@
#include "base/memory/ref_counted.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/size.h"
-#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_export.h"
namespace gfx {
@@ -36,6 +35,10 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> {
// Create a GL image for a window.
static scoped_refptr<GLImage> CreateGLImage(gfx::PluginWindowHandle window);
+ // Create a GL image for a GPU Memory buffer.
+ static scoped_refptr<GLImage> CreateGLImageForGpuMemoryBuffer(
+ gfx::GpuMemoryBufferHandle buffer, const gfx::Size& size);
no sievers 2013/04/05 22:16:34 nit: gfx::Size by value
kaanb 2013/04/08 15:48:11 Done.
+
protected:
virtual ~GLImage();
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_image_android.cc » ('j') | ui/gl/gl_image_egl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698