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

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 ToT Created 5 years, 5 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 5ce4a0b6a1d29f452c729cae23204b522a5b6fe5..fecfe44a05b74b8d1038a91e5aa14f33a5a6a209 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 {
@@ -40,6 +41,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