Index: content/common/gpu/gpu_memory_buffer_factory.h |
diff --git a/content/common/gpu/gpu_memory_buffer_factory.h b/content/common/gpu/gpu_memory_buffer_factory.h |
index 473f30b1d2de10db741f2e58063e486f8021504f..0c06537b3c484588eab1695d728cdd3c8d519102 100644 |
--- a/content/common/gpu/gpu_memory_buffer_factory.h |
+++ b/content/common/gpu/gpu_memory_buffer_factory.h |
@@ -14,6 +14,10 @@ namespace gfx { |
class GLImage; |
} |
+namespace gpu { |
+class ImageFactory; |
+} |
+ |
namespace content { |
class GpuMemoryBufferFactory { |
@@ -37,15 +41,8 @@ class GpuMemoryBufferFactory { |
virtual void DestroyGpuMemoryBuffer( |
const gfx::GpuMemoryBufferHandle& handle) = 0; |
- // Creates a GLImage instance for GPU memory buffer identified by |handle|. |
- // |client_id| should be set to the client requesting the creation of instance |
- // and can be used by factory implementation to verify access rights. |
- virtual scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer( |
- const gfx::GpuMemoryBufferHandle& handle, |
- const gfx::Size& size, |
- gfx::GpuMemoryBuffer::Format format, |
- unsigned internalformat, |
- int client_id) = 0; |
+ // Type-checking downcast routine. |
+ virtual gpu::ImageFactory* AsImageFactory() = 0; |
private: |
DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactory); |