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

Unified Diff: ui/gfx/native_pixmap_handle.h

Issue 2298003002: gfx: Struct traits for GpuMemoryBufferHandle. (Closed)
Patch Set: . Created 4 years, 3 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/mojo/traits_test_service.mojom ('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_ozone.h b/ui/gfx/native_pixmap_handle.h
similarity index 88%
rename from ui/gfx/native_pixmap_handle_ozone.h
rename to ui/gfx/native_pixmap_handle.h
index ae80414b53b48f1eb78da4611c179e4858b8f789..767951b7cb1f44a6ebbceb30c9ec490d34504de4 100644
--- a/ui/gfx/native_pixmap_handle_ozone.h
+++ b/ui/gfx/native_pixmap_handle.h
@@ -2,15 +2,18 @@
// 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_
+#ifndef UI_GFX_NATIVE_PIXMAP_HANDLE_H_
+#define UI_GFX_NATIVE_PIXMAP_HANDLE_H_
#include <stdint.h>
#include <vector>
-#include "base/file_descriptor_posix.h"
#include "ui/gfx/gfx_export.h"
+#if defined(USE_OZONE)
+#include "base/file_descriptor_posix.h"
+#endif
+
namespace gfx {
// NativePixmapPlane is used to carry the plane related information for GBM
@@ -36,12 +39,14 @@ struct GFX_EXPORT NativePixmapHandle {
NativePixmapHandle(const NativePixmapHandle& other);
~NativePixmapHandle();
+
+#if defined(USE_OZONE)
// File descriptors for the underlying memory objects (usually dmabufs).
std::vector<base::FileDescriptor> fds;
-
+#endif
std::vector<NativePixmapPlane> planes;
};
} // namespace gfx
-#endif // UI_GFX_NATIVE_PIXMAP_HANDLE_OZONE_H_
+#endif // UI_GFX_NATIVE_PIXMAP_HANDLE_H_
« no previous file with comments | « ui/gfx/mojo/traits_test_service.mojom ('k') | ui/gfx/native_pixmap_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698