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

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

Issue 2919533003: ozone/drm: Only reuse ScanoutBuffers with compatible modifiers (Closed)
Patch Set: ozone/drm: Only reuse ScanoutBuffers with compatible modifiers Created 3 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/gbm_buffer.h ('k') | ui/ozone/platform/drm/gpu/gbm_buffer_base.h » ('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.cc
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer.cc b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
index dff2d96b234c136d4bca99760c71942f79a5c67c..67238740d5b97af29265dfde111d09a6d9807017 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
@@ -83,11 +83,6 @@ size_t GbmBuffer::GetSize(size_t index) const {
return planes_[index].size;
}
-uint64_t GbmBuffer::GetFormatModifier(size_t index) const {
- DCHECK_LT(index, planes_.size());
- return planes_[index].modifier;
-}
-
// TODO(reveman): This should not be needed once crbug.com/597932 is fixed,
// as the size would be queried directly from the underlying bo.
gfx::Size GbmBuffer::GetSize() const {
@@ -250,7 +245,7 @@ gfx::NativePixmapHandle GbmPixmap::ExportHandle() {
}
handle.planes.emplace_back(buffer_->GetStride(i), buffer_->GetOffset(i),
buffer_->GetSize(i),
- buffer_->GetFormatModifier(i));
+ buffer_->GetFormatModifier());
}
return handle;
}
@@ -283,7 +278,7 @@ int GbmPixmap::GetDmaBufOffset(size_t plane) const {
}
uint64_t GbmPixmap::GetDmaBufModifier(size_t plane) const {
- return buffer_->GetFormatModifier(plane);
+ return buffer_->GetFormatModifier();
}
gfx::BufferFormat GbmPixmap::GetBufferFormat() const {
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer.h ('k') | ui/ozone/platform/drm/gpu/gbm_buffer_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698