Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: ui/ozone/public/surface_factory_ozone.h

Issue 1381133002: ozone: Implement support for CreateGpuMemoryBufferFromHandle for OzoneNativePixmap backed GMBs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmb-factory-create-from-handle
Patch Set: rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698