Index: ui/ozone/public/native_pixmap_manager.h |
diff --git a/ui/ozone/public/native_pixmap_manager.h b/ui/ozone/public/native_pixmap_manager.h |
index 5ae10d92f216a06099be9d63a348685c4f2293ac..5b3e2c557f543b2db5ea3c69d542a524a3fa6de0 100644 |
--- a/ui/ozone/public/native_pixmap_manager.h |
+++ b/ui/ozone/public/native_pixmap_manager.h |
@@ -8,6 +8,7 @@ |
#include <vector> |
#include "ui/ozone/ozone_export.h" |
+#include "ui/ozone/public/native_pixmap.h" |
#include "ui/ozone/public/surface_factory_ozone.h" |
namespace base { |
@@ -37,6 +38,14 @@ class OZONE_EXPORT NativePixmapManager { |
virtual std::vector<Configuration> GetSupportedNativePixmapConfigurations() |
const = 0; |
+ // Create a single native buffer from |handle| to be used for zero copy in |
+ // Browser or Render process. |
+ virtual scoped_refptr<NativePixmap> CreateFromFileDescriptor( |
+ base::FileDescriptor handle, |
+ gfx::Size size, |
+ SurfaceFactoryOzone::BufferFormat format, |
+ SurfaceFactoryOzone::BufferUsage usage) = 0; |
+ |
protected: |
NativePixmapManager(); |