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

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: remove unnecesary #include and DCHECK msgs 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..f87f32b783491cf855dd1153839abbf54fbf099a 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,10 @@
#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.
@@ -26,12 +30,16 @@ 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(
+ gfx::GpuMemoryBufferId id,
+ const gfx::Size& size,
+ gfx::BufferFormat format,
+ const DestructionCallback& callback,
+ scoped_ptr<ui::ClientNativePixmap> native_pixmap);
~GpuMemoryBufferImplOzoneNativePixmap() override;
+ scoped_ptr<ui::ClientNativePixmap> pixmap_;
+
DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplOzoneNativePixmap);
};

Powered by Google App Engine
This is Rietveld 408576698