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

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 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/surface_factory_ozone.h
diff --git a/ui/ozone/public/surface_factory_ozone.h b/ui/ozone/public/surface_factory_ozone.h
index f7b7cbde99df2e2dbef4e443a43b66c01e187140..a9af5555ca5368333b4526888048bb98d5551560 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);
+
// Returns true if overlays can be shown at z-index 0, replacing the main
// surface. Combined with surfaceless extensions, it allows for an
// overlay-only mode.

Powered by Google App Engine
This is Rietveld 408576698