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

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

Issue 2678343011: chromeos: decode video into NV12 format instead of RGBA in vaapi decoder (Closed)
Patch Set: decide scanout in runtime 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
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 7081e847582ee2a9d273ead30f883e2f89eb39d8..f70099aaa986a570756d9958358276e9d35854a8 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
@@ -360,6 +360,10 @@ gfx::BufferFormat GbmPixmap::GetBufferFormat() const {
return ui::GetBufferFormatFromFourCCFormat(buffer_->GetFormat());
}
+gfx::BufferUsage GbmPixmap::GetBufferUsage() const {
+ return ui::GetBufferUsageFromGbmFlags(buffer_->GetFlags());
+}
+
gfx::Size GbmPixmap::GetBufferSize() const {
return buffer_->GetSize();
}

Powered by Google App Engine
This is Rietveld 408576698