Index: ui/ozone/platform/drm/gpu/gbm_buffer.h |
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer.h b/ui/ozone/platform/drm/gpu/gbm_buffer.h |
index 3674f8850533e1d161dff067234fdf4483cd6482..6a29eda84c44c2699768bf5eb1c62cea0a49b39a 100644 |
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.h |
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.h |
@@ -39,6 +39,7 @@ class GbmBuffer : public GbmBufferBase { |
bool AreFdsValid() const; |
int GetFd(size_t plane) const; |
int GetStride(size_t plane) const; |
+ uint64_t GetFormatModifier(size_t plane) const; |
gfx::Size GetSize() const override; |
private: |
@@ -48,7 +49,8 @@ class GbmBuffer : public GbmBufferBase { |
gfx::BufferUsage usage, |
std::vector<base::ScopedFD>&& fds, |
const gfx::Size& size, |
- const std::vector<int>& strides); |
+ const std::vector<int>& strides, |
+ const std::vector<uint64_t>& modifiers); |
marcheu1
2016/06/07 01:29:07
Is there a way we can have multiple modifiers? I d
vinceh
2016/06/07 01:56:30
Since the patch "Add support for multiple FDs to N
|
~GbmBuffer() override; |
gfx::BufferFormat format_; |
@@ -56,6 +58,7 @@ class GbmBuffer : public GbmBufferBase { |
std::vector<base::ScopedFD> fds_; |
gfx::Size size_; |
std::vector<int> strides_; |
+ std::vector<uint64_t> modifiers_; |
DISALLOW_COPY_AND_ASSIGN(GbmBuffer); |
}; |
@@ -73,6 +76,7 @@ class GbmPixmap : public NativePixmap { |
bool AreDmaBufFdsValid() const override; |
int GetDmaBufFd(size_t plane) const override; |
int GetDmaBufPitch(size_t plane) const override; |
+ uint64_t GetDmaBufModifier(size_t plane) const override; |
gfx::BufferFormat GetBufferFormat() const override; |
gfx::Size GetBufferSize() const override; |
bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |