| Index: ui/ozone/platform/drm/common/drm_util.cc
|
| diff --git a/ui/ozone/platform/drm/common/drm_util.cc b/ui/ozone/platform/drm/common/drm_util.cc
|
| index 57f3488fbc807d9b2058052f75843200806a7b16..e833725127b514f6d44a3a0e0623306d4c44e00b 100644
|
| --- a/ui/ozone/platform/drm/common/drm_util.cc
|
| +++ b/ui/ozone/platform/drm/common/drm_util.cc
|
| @@ -273,6 +273,8 @@ DisplaySnapshot_Params CreateDisplaySnapshotParams(
|
|
|
| int GetFourCCFormatFromBufferFormat(gfx::BufferFormat format) {
|
| switch (format) {
|
| + case gfx::BufferFormat::RGBA_8888:
|
| + return DRM_FORMAT_ABGR8888;
|
| case gfx::BufferFormat::BGRA_8888:
|
| return DRM_FORMAT_ARGB8888;
|
| case gfx::BufferFormat::BGRX_8888:
|
| @@ -287,6 +289,8 @@ int GetFourCCFormatFromBufferFormat(gfx::BufferFormat format) {
|
|
|
| gfx::BufferFormat GetBufferFormatFromFourCCFormat(int format) {
|
| switch (format) {
|
| + case DRM_FORMAT_ABGR8888:
|
| + return gfx::BufferFormat::RGBA_8888;
|
| case DRM_FORMAT_ARGB8888:
|
| return gfx::BufferFormat::BGRA_8888;
|
| case DRM_FORMAT_XRGB8888:
|
|
|