| 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 40dd15a0e611212b5f50f1e71821598b3e47199d..b5813421945636813d2e72aecb775420bfa9953e 100644
|
| --- a/gpu/command_buffer/service/image_factory.h
|
| +++ b/gpu/command_buffer/service/image_factory.h
|
| @@ -15,6 +15,7 @@ class GLImage;
|
| }
|
|
|
| namespace gpu {
|
| +struct Capabilities;
|
|
|
| class GPU_EXPORT ImageFactory {
|
| public:
|
| @@ -35,6 +36,16 @@ class GPU_EXPORT ImageFactory {
|
| unsigned internalformat,
|
| gfx::GpuMemoryBuffer::Format format);
|
|
|
| + // Returns true if |format| is supported by |capabilities|.
|
| + static bool IsGpuMemoryBufferFormatSupported(
|
| + gfx::GpuMemoryBuffer::Format format,
|
| + const Capabilities& capabilities);
|
| +
|
| + // Returns true if |size| is valid for |format|.
|
| + static bool IsImageSizeValidForGpuMemoryBufferFormat(
|
| + const gfx::Size& size,
|
| + gfx::GpuMemoryBuffer::Format format);
|
| +
|
| // 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.
|
|
|