| 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 8a968a5bdafc30b030f7c0199e41926f0de9a996..a71ef14aa71a807751e1bc566ea0ade299420d91 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
|
| @@ -13,26 +13,24 @@ namespace content {
|
| class GpuMemoryBufferImplOzoneNativeBuffer : public GpuMemoryBufferImpl {
|
| public:
|
| static void Create(const gfx::Size& size,
|
| - unsigned internalformat,
|
| - unsigned usage,
|
| + Format format,
|
| int client_id,
|
| const CreationCallback& callback);
|
|
|
| static void AllocateForChildProcess(const gfx::Size& size,
|
| - unsigned internalformat,
|
| - unsigned usage,
|
| + Format format,
|
| int child_client_id,
|
| const AllocationCallback& callback);
|
|
|
| static scoped_ptr<GpuMemoryBufferImpl> CreateFromHandle(
|
| const gfx::GpuMemoryBufferHandle& handle,
|
| const gfx::Size& size,
|
| - unsigned internalformat,
|
| + Format format,
|
| const DestructionCallback& callback);
|
|
|
| - static bool IsFormatSupported(unsigned internalformat);
|
| - static bool IsUsageSupported(unsigned usage);
|
| - static bool IsConfigurationSupported(unsigned internalformat, unsigned usage);
|
| + static bool IsFormatSupported(Format format);
|
| + static bool IsUsageSupported(Usage usage);
|
| + static bool IsConfigurationSupported(Format format, Usage usage);
|
|
|
| // Overridden from gfx::GpuMemoryBuffer:
|
| virtual void* Map() override;
|
| @@ -42,7 +40,7 @@ class GpuMemoryBufferImplOzoneNativeBuffer : public GpuMemoryBufferImpl {
|
|
|
| private:
|
| GpuMemoryBufferImplOzoneNativeBuffer(const gfx::Size& size,
|
| - unsigned internalformat,
|
| + Format format,
|
| const DestructionCallback& callback,
|
| const gfx::GpuMemoryBufferId& id);
|
| virtual ~GpuMemoryBufferImplOzoneNativeBuffer();
|
|
|