| Index: gpu/command_buffer/service/image_factory.h
|
| diff --git a/gpu/command_buffer/service/image_factory.h b/gpu/command_buffer/service/image_factory.h
|
| index cfa4cef27f0f6195c7608edbba5f1b0f1ad99348..1db88cc8ed7cb076aa6801a9b656d477668f57b1 100644
|
| --- a/gpu/command_buffer/service/image_factory.h
|
| +++ b/gpu/command_buffer/service/image_factory.h
|
| @@ -30,6 +30,19 @@ class GPU_EXPORT ImageFactory {
|
| unsigned internalformat,
|
| int client_id) = 0;
|
|
|
| + // Create an anonymous GLImage backed by a GpuMemoryBuffer that doesn't have a
|
| + // client_id. It can't be passed to other processes.
|
| + virtual scoped_refptr<gl::GLImage> CreateAnonymousImage(
|
| + const gfx::Size& size,
|
| + gfx::BufferFormat format,
|
| + unsigned internalformat);
|
| +
|
| + // An image can only be bound to a texture with the appropriate type.
|
| + virtual unsigned RequiredTextureType();
|
| +
|
| + // Whether a created image can have format GL_RGB.
|
| + virtual bool SupportsFormatRGB();
|
| +
|
| protected:
|
| virtual ~ImageFactory();
|
| };
|
|
|