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

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

Issue 2110213002: Revert of 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: 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 b8397448b98dc0521cc24fc87ccc3904e03bb169..f2351fa62bf868d90f8b14235b131898eee4ae2f 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.h
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.h
@@ -33,7 +33,8 @@
gfx::BufferFormat format,
const gfx::Size& size,
std::vector<base::ScopedFD>&& fds,
- const std::vector<gfx::NativePixmapPlane>& planes);
+ const std::vector<int>& strides,
+ const std::vector<int>& offsets);
gfx::BufferFormat GetFormat() const { return format_; }
gfx::BufferUsage GetUsage() const { return usage_; }
bool AreFdsValid() const;
@@ -41,7 +42,6 @@
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,15 +51,16 @@
gfx::BufferUsage usage,
std::vector<base::ScopedFD>&& fds,
const gfx::Size& size,
- const std::vector<gfx::NativePixmapPlane>&& planes);
+ const std::vector<int>& strides,
+ const std::vector<int>& offsets);
~GbmBuffer() override;
gfx::BufferFormat format_;
gfx::BufferUsage usage_;
std::vector<base::ScopedFD> fds_;
gfx::Size size_;
-
- std::vector<gfx::NativePixmapPlane> planes_;
+ std::vector<int> strides_;
+ std::vector<int> offsets_;
DISALLOW_COPY_AND_ASSIGN(GbmBuffer);
};
@@ -79,7 +80,6 @@
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