| Index: ui/ozone/public/surface_factory_ozone.h
|
| diff --git a/ui/ozone/public/surface_factory_ozone.h b/ui/ozone/public/surface_factory_ozone.h
|
| index 07ab4957594b2a2b95e2d0943f336b8b6dfd8c32..0899f834f6ee1b63ae489d901ea2b43a1eab632a 100644
|
| --- a/ui/ozone/public/surface_factory_ozone.h
|
| +++ b/ui/ozone/public/surface_factory_ozone.h
|
| @@ -13,6 +13,7 @@
|
| #include "ui/gfx/native_widget_types.h"
|
| #include "ui/gfx/overlay_transform.h"
|
| #include "ui/ozone/ozone_base_export.h"
|
| +#include "ui/ozone/public/native_pixmap.h"
|
|
|
| namespace ui {
|
|
|
| @@ -106,6 +107,11 @@ class OZONE_BASE_EXPORT SurfaceFactoryOzone {
|
| gfx::BufferFormat format,
|
| gfx::BufferUsage usage);
|
|
|
| + // Create a single native buffer from an existing handle.
|
| + // It can be called on any thread.
|
| + virtual scoped_refptr<NativePixmap> CreateNativePixmapFromHandle(
|
| + const gfx::NativePixmapHandle& handle);
|
| +
|
| protected:
|
| SurfaceFactoryOzone();
|
| virtual ~SurfaceFactoryOzone();
|
|
|