Index: ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h |
diff --git a/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h b/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h |
index bf98786fd5d4f64dd42ad844c738a5793e0e6367..006a4a5497ac72a7242ce4506e0ceee8de39bd3b 100644 |
--- a/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h |
+++ b/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h |
@@ -13,6 +13,7 @@ |
#include "ui/gfx/gpu_memory_buffer.h" |
#include "ui/gfx/native_widget_types.h" |
#include "ui/ozone/gpu/ozone_gpu_export.h" |
+#include "ui/ozone/public/native_pixmap.h" |
namespace gfx { |
class GLImage; |
@@ -48,6 +49,12 @@ class OZONE_GPU_EXPORT GpuMemoryBufferFactoryOzoneNativeBuffer { |
unsigned internalformat, |
int client_id); |
+ static scoped_refptr<gfx::GLImage> CreateImageForPixmap( |
+ scoped_refptr<NativePixmap> pixmap, |
+ const gfx::Size& size, |
+ gfx::GpuMemoryBuffer::Format format, |
+ unsigned internalformat); |
+ |
private: |
BufferToPixmapMap native_pixmap_map_; |
base::Lock native_pixmap_map_lock_; |