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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_buffer.h

Issue 2039813002: Add format modifier IDs for EGL_EXT_image_dma_buf_import extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add format modifier IDs for EGL_EXT_image_dma_buf_import extension Created 4 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread_proxy.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f2351fa62bf868d90f8b14235b131898eee4ae2f..b8397448b98dc0521cc24fc87ccc3904e03bb169 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.h
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.h
@@ -33,8 +33,7 @@ class GbmBuffer : public GbmBufferBase {
gfx::BufferFormat format,
const gfx::Size& size,
std::vector<base::ScopedFD>&& fds,
- const std::vector<int>& strides,
- const std::vector<int>& offsets);
+ const std::vector<gfx::NativePixmapPlane>& planes);
gfx::BufferFormat GetFormat() const { return format_; }
gfx::BufferUsage GetUsage() const { return usage_; }
bool AreFdsValid() const;
@@ -42,6 +41,7 @@ class GbmBuffer : public GbmBufferBase {
int GetFd(size_t plane) const;
int GetStride(size_t plane) const;
int GetOffset(size_t plane) const;
+ uint64_t GetFormatModifier(size_t plane) const;
gfx::Size GetSize() const override;
private:
@@ -51,16 +51,15 @@ 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>& offsets);
+ const std::vector<gfx::NativePixmapPlane>&& planes);
~GbmBuffer() override;
gfx::BufferFormat format_;
gfx::BufferUsage usage_;
std::vector<base::ScopedFD> fds_;
gfx::Size size_;
- std::vector<int> strides_;
- std::vector<int> offsets_;
+
+ std::vector<gfx::NativePixmapPlane> planes_;
DISALLOW_COPY_AND_ASSIGN(GbmBuffer);
};
@@ -80,6 +79,7 @@ class GbmPixmap : public NativePixmap {
int GetDmaBufFd(size_t plane) const override;
int GetDmaBufPitch(size_t plane) const override;
int GetDmaBufOffset(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,
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread_proxy.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698