Index: ui/ozone/public/client_native_pixmap_factory.h |
diff --git a/ui/ozone/public/client_native_pixmap_factory.h b/ui/ozone/public/client_native_pixmap_factory.h |
index a5d58e16c6e1018e20e628094165d076c9478211..9ca0e6e0fe493110c26e83e827e392b93bfbe8a2 100644 |
--- a/ui/ozone/public/client_native_pixmap_factory.h |
+++ b/ui/ozone/public/client_native_pixmap_factory.h |
@@ -7,6 +7,7 @@ |
#include <vector> |
+#include "base/file_descriptor_posix.h" |
#include "base/memory/scoped_ptr.h" |
#include "ui/gfx/buffer_types.h" |
#include "ui/ozone/ozone_export.h" |
@@ -17,12 +18,6 @@ struct NativePixmapHandle; |
class Size; |
} |
-namespace base { |
- |
-struct FileDescriptor; |
- |
-} // namespace base |
- |
namespace ui { |
// The Ozone interface allows external implementations to hook into Chromium to |
@@ -36,6 +31,12 @@ class OZONE_EXPORT ClientNativePixmapFactory { |
virtual ~ClientNativePixmapFactory(); |
+ // Open VGEM device file. A caller takes ownership of the file descriptor. |
+ virtual int OpenVgemFD() const = 0; |
reveman
2015/08/14 13:19:13
could this return a ScopedFD to make the ownership
dshwang
2015/08/14 16:20:27
Done.
|
+ |
+ // Set VGEM device file. This takes ownership of the file descriptor. |
+ virtual void SetVgemFD(const base::FileDescriptor& vgem_fd) = 0; |
reveman
2015/08/14 13:19:13
Can we pass a ScopedFD to this function instead?
dshwang
2015/08/14 16:20:27
Done.
|
+ |
struct Configuration { |
gfx::BufferFormat format; |
gfx::BufferUsage usage; |