Chromium Code Reviews| 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() {} |