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

Unified Diff: ui/ozone/public/native_pixmap.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: not-leak USE_OZONE_GBM, GetSupportedGpuMemoryBufferConfigurations from ozone, return handle Created 5 years, 7 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.h
diff --git a/ui/ozone/public/native_pixmap.h b/ui/ozone/public/native_pixmap.h
index d3369c0b3a9f0f4049d0760c8abdd0bce73153de..1f593a943297a22113c112e9c9c07fb42f455be0 100644
--- a/ui/ozone/public/native_pixmap.h
+++ b/ui/ozone/public/native_pixmap.h
@@ -7,6 +7,12 @@
#include "base/memory/ref_counted.h"
+namespace gfx {
+
+struct GpuMemoryBufferHandle;
reveman 2015/05/14 13:22:03 This code should not know about GpuMemoryBuffers.
+
+} // namespace gfx
+
namespace ui {
// This represents a buffer that can be directly imported via GL for
@@ -19,6 +25,12 @@ class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> {
virtual int GetDmaBufFd() = 0;
virtual int GetDmaBufPitch() = 0;
+ enum BufferUsage {
+ MAP,
+ SCANOUT,
+ };
+ virtual BufferUsage GetBufferUsage() const = 0;
+
protected:
virtual ~NativePixmap() {}

Powered by Google App Engine
This is Rietveld 408576698