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

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: depend on 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 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();

Powered by Google App Engine
This is Rietveld 408576698