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

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

Issue 1314553002: Move Format checks to HardwareDisplayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes Created 5 years, 4 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_buffer.cc ('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 a60ec54c76c5d7141fe3c40cca53e577c5d40a18..4e63026935b001939c1482dac2f0ca5f8df97803 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
@@ -24,9 +24,9 @@ namespace {
int GetGbmFormatFromBufferFormat(gfx::BufferFormat fmt) {
switch (fmt) {
case gfx::BufferFormat::BGRA_8888:
- return GBM_BO_FORMAT_ARGB8888;
+ return GBM_FORMAT_ARGB8888;
case gfx::BufferFormat::BGRX_8888:
- return GBM_BO_FORMAT_XRGB8888;
+ return GBM_FORMAT_XRGB8888;
default:
NOTREACHED();
return 0;
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_buffer.cc ('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