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

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

Issue 1134993003: ozone: Implement zero/one-copy texture for Ozone GBM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to new crrev.com/1128113011 Created 5 years, 6 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/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();

Powered by Google App Engine
This is Rietveld 408576698