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

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: 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
« no previous file with comments | « ui/ozone/public/client_native_pixmap_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5bb007ad8d07a551ea17f8e6db5a31eb151b3192 100644
--- a/ui/ozone/public/native_pixmap.h
+++ b/ui/ozone/public/native_pixmap.h
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/memory/ref_counted.h"
+#include "ui/gfx/native_pixmap_handle_ozone.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/overlay_transform.h"
@@ -53,6 +54,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() {}
« no previous file with comments | « ui/ozone/public/client_native_pixmap_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698