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

Unified Diff: ui/ozone/public/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: rm some unneeded hunks 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: ui/ozone/public/native_pixmap.h
diff --git a/ui/ozone/public/native_pixmap.h b/ui/ozone/public/native_pixmap.h
index 0251a12246d41a0cf91e553bedb316d93bf296a8..c49530a367ca02827b1669271e6da42c68798bf6 100644
--- a/ui/ozone/public/native_pixmap.h
+++ b/ui/ozone/public/native_pixmap.h
@@ -7,10 +7,13 @@
#include "base/bind.h"
#include "base/memory/ref_counted.h"
+#include "ui/gfx/buffer_types.h"
reveman 2015/08/05 13:58:53 is this include needed?
spang 2015/08/05 14:06:18 Seems not, removed.
+#include "ui/gfx/native_pixmap_handle_ozone.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/overlay_transform.h"
namespace gfx {
+class NativePixmapHandle;
class Rect;
class RectF;
}
@@ -53,6 +56,10 @@ class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> {
virtual void SetScalingCallback(const ScalingCallback& scaling_callback) = 0;
virtual scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) = 0;
+ // Export the buffer for sharing across processes.
+ // Any file descriptors in the exported handle are owned by the caller.
+ virtual gfx::NativePixmapHandle ExportHandle() = 0;
+
protected:
virtual ~NativePixmap() {}

Powered by Google App Engine
This is Rietveld 408576698