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 41d5a991bb8c65a320a39bb9415c5ceb41d45669..bdcf0fa39fe60037f8585276ade7122b6c476590 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 |
@@ -12,12 +12,14 @@ namespace content { |
// Implementation of GPU memory buffer based on Ozone native buffers. |
class GpuMemoryBufferImplOzoneNativeBuffer : public GpuMemoryBufferImpl { |
public: |
- static void Create(const gfx::Size& size, |
+ static void Create(gfx::GpuMemoryBufferId id, |
+ const gfx::Size& size, |
Format format, |
int client_id, |
const CreationCallback& callback); |
- static void AllocateForChildProcess(const gfx::Size& size, |
+ static void AllocateForChildProcess(gfx::GpuMemoryBufferId id, |
+ const gfx::Size& size, |
Format format, |
int child_client_id, |
const AllocationCallback& callback); |
@@ -39,14 +41,12 @@ class GpuMemoryBufferImplOzoneNativeBuffer : public GpuMemoryBufferImpl { |
gfx::GpuMemoryBufferHandle GetHandle() const override; |
private: |
- GpuMemoryBufferImplOzoneNativeBuffer(const gfx::Size& size, |
+ GpuMemoryBufferImplOzoneNativeBuffer(gfx::GpuMemoryBufferId id, |
+ const gfx::Size& size, |
Format format, |
- const DestructionCallback& callback, |
- const gfx::GpuMemoryBufferId& id); |
+ const DestructionCallback& callback); |
~GpuMemoryBufferImplOzoneNativeBuffer() override; |
- gfx::GpuMemoryBufferId id_; |
- |
DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplOzoneNativeBuffer); |
}; |