Index: content/common/gpu/client/gpu_memory_buffer_impl_android.cc |
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_android.cc b/content/common/gpu/client/gpu_memory_buffer_impl_android.cc |
index ffd4e381c7d9276e27d51e5c9d027ecca96dd33c..8c19920bb5ec3bfc59769504fbd2369b408dc2c1 100644 |
--- a/content/common/gpu/client/gpu_memory_buffer_impl_android.cc |
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_android.cc |
@@ -3,8 +3,8 @@ |
// found in the LICENSE file. |
#include "content/common/gpu/client/gpu_memory_buffer_impl.h" |
- |
#include "content/common/gpu/client/gpu_memory_buffer_impl_shm.h" |
+#include "content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h" |
namespace content { |
@@ -21,6 +21,14 @@ scoped_ptr<GpuMemoryBufferImpl> GpuMemoryBufferImpl::Create( |
return buffer.PassAs<GpuMemoryBufferImpl>(); |
} |
+ case gfx::SURFACE_TEXTURE_BUFFER: { |
+ scoped_ptr<GpuMemoryBufferImplSurfaceTexture> buffer( |
+ new GpuMemoryBufferImplSurfaceTexture(size, internalformat)); |
+ if (!buffer->Initialize(handle)) |
+ return scoped_ptr<GpuMemoryBufferImpl>(); |
+ |
+ return buffer.PassAs<GpuMemoryBufferImpl>(); |
+ } |
default: |
return scoped_ptr<GpuMemoryBufferImpl>(); |
} |