Chromium Code Reviews| Index: content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h |
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h |
| index ab4cc56a184b47d1899e3f588f9420d2b5437ec0..644cce4347f8b4c44c309fbb3584581cfd4e4465 100644 |
| --- a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h |
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h |
| @@ -25,6 +25,13 @@ class GpuMemoryBufferImplOzoneNativeBuffer : public GpuMemoryBufferImpl { |
| int child_id, |
| const AllocationCallback& callback); |
| + // Allocates an Ozone native buffer backed GPU memory buffer with |size| and |
| + // |internalformat| with usage |usage| for use by the browser. |
| + static gfx::GpuMemoryBufferHandle AllocateOzoneNativeBufferForBrowser( |
| + const gfx::Size& size, |
| + unsigned internalformat, |
| + unsigned usage); |
|
reveman
2014/09/04 19:43:31
The current convention for doing this is to add an
alexst (slow to review)
2014/09/04 21:14:47
Done.
|
| + |
| static bool IsFormatSupported(unsigned internalformat); |
| static bool IsUsageSupported(unsigned usage); |
| static bool IsConfigurationSupported(unsigned internalformat, unsigned usage); |