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

Unified Diff: ui/gfx/native_pixmap_handle.h

Issue 2683593006: Use OS_LINUX instead of USE_OZONE in ui/gfx/ when possible (Closed)
Patch Set: Rebase Created 3 years, 9 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/struct_traits_unittest.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 986c5a29d82fbd7a0bf24f522f344a385a69159a..827a7fef871b1dcfdceecbdc2db441fca0e21e8a 100644
--- a/ui/gfx/native_pixmap_handle.h
+++ b/ui/gfx/native_pixmap_handle.h
@@ -10,9 +10,10 @@
#include <vector>
+#include "build/build_config.h"
#include "ui/gfx/gfx_export.h"
-#if defined(USE_OZONE)
+#if defined(OS_LINUX)
#include "base/file_descriptor_posix.h"
#endif
@@ -45,14 +46,14 @@ struct GFX_EXPORT NativePixmapHandle {
~NativePixmapHandle();
-#if defined(USE_OZONE)
+#if defined(OS_LINUX)
// File descriptors for the underlying memory objects (usually dmabufs).
std::vector<base::FileDescriptor> fds;
#endif
std::vector<NativePixmapPlane> planes;
};
-#if defined(USE_OZONE)
+#if defined(OS_LINUX)
// 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|.
« no previous file with comments | « ui/gfx/mojo/struct_traits_unittest.cc ('k') | ui/gfx/native_pixmap_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698