Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h

Issue 1263323004: Add NativePixmapHandle type & interface for exporting them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cast build Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..74f1bfeb862ddde7a9825e879b6e70a13fa274b8 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,11 +7,17 @@
#include "content/common/gpu/client/gpu_memory_buffer_impl.h"
+namespace ui {
+class ClientNativePixmap;
+}
+
namespace content {
// Implementation of GPU memory buffer based on Ozone native pixmap.
class GpuMemoryBufferImplOzoneNativePixmap : public GpuMemoryBufferImpl {
public:
+ ~GpuMemoryBufferImplOzoneNativePixmap() override;
+
static scoped_ptr<GpuMemoryBufferImpl> CreateFromHandle(
const gfx::GpuMemoryBufferHandle& handle,
const gfx::Size& size,
@@ -26,11 +32,14 @@ class GpuMemoryBufferImplOzoneNativePixmap : public GpuMemoryBufferImpl {
gfx::GpuMemoryBufferHandle GetHandle() const override;
private:
- GpuMemoryBufferImplOzoneNativePixmap(gfx::GpuMemoryBufferId id,
- const gfx::Size& size,
- gfx::BufferFormat format,
- const DestructionCallback& callback);
- ~GpuMemoryBufferImplOzoneNativePixmap() override;
+ GpuMemoryBufferImplOzoneNativePixmap(
+ gfx::GpuMemoryBufferId id,
+ const gfx::Size& size,
+ gfx::BufferFormat format,
+ const DestructionCallback& callback,
+ scoped_ptr<ui::ClientNativePixmap> native_pixmap);
+
+ scoped_ptr<ui::ClientNativePixmap> pixmap_;
DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplOzoneNativePixmap);
};
« no previous file with comments | « content/common/child_process_messages.h ('k') | content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698