Index: content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h |
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h |
index f72f344e5f74c51bf4b5392a72019ceb78081d93..34bf2e6c6ea38d17408caff1a2f20623ff76b75c 100644 |
--- a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h |
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h |
@@ -7,6 +7,12 @@ |
#include "content/common/gpu/client/gpu_memory_buffer_impl.h" |
+namespace ui { |
+ |
+class ClientNativePixmap; |
+ |
+} // namespace ui |
+ |
namespace content { |
// Implementation of GPU memory buffer based on Ozone native pixmap. |
@@ -18,6 +24,7 @@ class GpuMemoryBufferImplOzoneNativePixmap : public GpuMemoryBufferImpl { |
gfx::BufferFormat format, |
gfx::BufferUsage usage, |
const DestructionCallback& callback); |
+ ~GpuMemoryBufferImplOzoneNativePixmap() override; |
// Overridden from gfx::GpuMemoryBuffer: |
bool Map(void** data) override; |
@@ -29,8 +36,13 @@ class GpuMemoryBufferImplOzoneNativePixmap : public GpuMemoryBufferImpl { |
GpuMemoryBufferImplOzoneNativePixmap(gfx::GpuMemoryBufferId id, |
const gfx::Size& size, |
gfx::BufferFormat format, |
+ gfx::BufferUsage usage, |
const DestructionCallback& callback); |
- ~GpuMemoryBufferImplOzoneNativePixmap() override; |
+ |
+ bool Initialize(const gfx::GpuMemoryBufferHandle& handle); |
+ |
+ scoped_ptr<ui::ClientNativePixmap> pixmap_; |
+ gfx::BufferUsage usage_; |
DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplOzoneNativePixmap); |
}; |