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

Unified Diff: ui/ozone/public/surface_factory_ozone.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/surface_factory_ozone.h
diff --git a/ui/ozone/public/surface_factory_ozone.h b/ui/ozone/public/surface_factory_ozone.h
index 05f6691c167662afc8a4a943ccfb84d2f8fcff85..853a71ac109909cf23d71733490093c3aae2ee53 100644
--- a/ui/ozone/public/surface_factory_ozone.h
+++ b/ui/ozone/public/surface_factory_ozone.h
@@ -6,6 +6,7 @@
#define UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
#include "base/callback.h"
+#include "base/file_descriptor_posix.h"
#include "base/memory/scoped_ptr.h"
#include "base/native_library.h"
#include "ui/gfx/geometry/rect.h"
@@ -121,6 +122,10 @@ class OZONE_BASE_EXPORT SurfaceFactoryOzone {
BufferFormat format,
BufferUsage usage);
+ // Export GpuMemoryBufferHandle from |pixmap|.
+ virtual base::FileDescriptor ExportDmaBuf(gfx::AcceleratedWidget widget,
+ scoped_refptr<NativePixmap> pixmap);
+
// Sets the overlay plane to switch to at the next page flip.
// |w| specifies the screen to display this overlay plane on.
// |plane_z_order| specifies the stacking order of the plane relative to the

Powered by Google App Engine
This is Rietveld 408576698