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

Unified Diff: ui/gfx/native_pixmap_handle.h

Issue 2531963002: gfx: Fix sending native ozone pixmaps from InProcessCommandBuffer. (Closed)
Patch Set: . Created 4 years, 1 month 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/gfx/gpu_memory_buffer.cc ('k') | ui/gfx/native_pixmap_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/native_pixmap_handle.h
diff --git a/ui/gfx/native_pixmap_handle.h b/ui/gfx/native_pixmap_handle.h
index eca2bd1dd9cddd9a2653fa1516eb60c52e81465c..986c5a29d82fbd7a0bf24f522f344a385a69159a 100644
--- a/ui/gfx/native_pixmap_handle.h
+++ b/ui/gfx/native_pixmap_handle.h
@@ -6,6 +6,8 @@
#define UI_GFX_NATIVE_PIXMAP_HANDLE_H_
#include <stddef.h>
+#include <stdint.h>
+
#include <vector>
#include "ui/gfx/gfx_export.h"
@@ -50,6 +52,13 @@ struct GFX_EXPORT NativePixmapHandle {
std::vector<NativePixmapPlane> planes;
};
+#if defined(USE_OZONE)
+// Returns an instance of |handle| which can be sent over IPC. This duplicates
+// the file-handles, so that the IPC code take ownership of them, without
+// invalidating |handle|.
+NativePixmapHandle CloneHandleForIPC(const NativePixmapHandle& handle);
+#endif
+
} // namespace gfx
#endif // UI_GFX_NATIVE_PIXMAP_HANDLE_H_
« no previous file with comments | « ui/gfx/gpu_memory_buffer.cc ('k') | ui/gfx/native_pixmap_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698