| 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 7ba37b6f983f97448dfb4ae3ec6dc2df9fc59661..06984d0e17c629d60f0fab0e1e72ab0ae6dd664f 100644
|
| --- a/ui/ozone/public/native_pixmap_manager.h
|
| +++ b/ui/ozone/public/native_pixmap_manager.h
|
| @@ -6,6 +6,7 @@
|
| #define UI_OZONE_PUBLIC_NATIVE_PIXMAP_MANAGER_H_
|
|
|
| #include "ui/ozone/ozone_export.h"
|
| +#include "ui/ozone/public/native_pixmap.h"
|
| #include "ui/ozone/public/surface_factory_ozone.h"
|
|
|
| namespace base {
|
| @@ -35,6 +36,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();
|
|
|
|
|