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

Unified Diff: ui/gfx/native_pixmap_handle_ozone.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/gfx/ipc/gfx_param_traits_macros.h ('k') | ui/ozone/common/stub_client_native_pixmap_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/native_pixmap_handle_ozone.h
diff --git a/ui/gfx/native_pixmap_handle_ozone.h b/ui/gfx/native_pixmap_handle_ozone.h
new file mode 100644
index 0000000000000000000000000000000000000000..14d556080feb7cecfd1d042ddb46894e64e7fbfc
--- /dev/null
+++ b/ui/gfx/native_pixmap_handle_ozone.h
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_GFX_NATIVE_PIXMAP_HANDLE_OZONE_H_
+#define UI_GFX_NATIVE_PIXMAP_HANDLE_OZONE_H_
+
+#include "base/file_descriptor_posix.h"
+
+namespace gfx {
+
+struct NativePixmapHandle {
+ // A file descriptor for the underlying memory object (usually dmabuf).
+ base::FileDescriptor fd;
+
+ // The stride to used when accessing the buffer via a memory mapping.
+ int32_t stride = 0;
+};
+
+} // namespace gfx
+
+#endif // UI_GFX_NATIVE_PIXMAP_HANDLE_OZONE_H_
« no previous file with comments | « ui/gfx/ipc/gfx_param_traits_macros.h ('k') | ui/ozone/common/stub_client_native_pixmap_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698