Index: ui/gl/gl_image_android.cc |
diff --git a/ui/gl/gl_image_android.cc b/ui/gl/gl_image_android.cc |
index 4d04be1a4c1d8ccffed057902404283833cf8e4a..a619c8501784d144a0a18851552d1f72b54d28d7 100644 |
--- a/ui/gl/gl_image_android.cc |
+++ b/ui/gl/gl_image_android.cc |
@@ -8,6 +8,7 @@ |
#include "ui/gl/gl_image_android_native_buffer.h" |
#include "ui/gl/gl_image_shm.h" |
#include "ui/gl/gl_image_stub.h" |
+#include "ui/gl/gl_image_surface_texture.h" |
#include "ui/gl/gl_implementation.h" |
namespace gfx { |
@@ -49,6 +50,14 @@ scoped_refptr<GLImage> GLImage::CreateGLImageForGpuMemoryBuffer( |
return image; |
} |
+ case SURFACE_TEXTURE_BUFFER: { |
+ scoped_refptr<GLImageSurfaceTexture> image( |
+ new GLImageSurfaceTexture(size)); |
+ if (!image->Initialize(buffer)) |
+ return NULL; |
+ |
+ return image; |
+ } |
default: |
NOTREACHED(); |
return NULL; |