OSDN Git Service

cros_gralloc: map custom drm fourcc back to standard fourcc
authorJason Macnak <natsu@google.com>
Sat, 25 Jul 2020 13:02:22 +0000 (06:02 -0700)
committerAlistair Delva <adelva@google.com>
Sat, 29 Aug 2020 17:56:15 +0000 (17:56 +0000)
commitaa65a6a67cd41390d4e8a0f87e20d3191db2994d
tree3abe06a6afa4c24164f64c3105797b6e42645c55
parent06fb002d01d3a837ef54251713472d41845cddc7
cros_gralloc: map custom drm fourcc back to standard fourcc

Minigbm uses a custom fourcc DRM_FORMAT_YVU420_ANDROID to
specify a DRM_FORMAT_YVU420 format with the extra Android
specific alignment requirement. Mapper should map this
custom code back into the standard one for metadata get().

Bug: b/146515640
Test: launch_cvd, open youtube video, observe no hwc warning
Change-Id: Id9ac2bb233837b6c7aa093eddbea81da0bdf3c1b
cros_gralloc/gralloc4/CrosGralloc4Mapper.cc