diff options
author | Jesse Hall <jessehall@google.com> | 2014-08-17 21:41:25 -0700 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-06-29 07:49:42 +0200 |
commit | f6b4c48a76ccb9cf63b0985e2086a1962f99f4ae (patch) | |
tree | 90b0ce62ae067e414708d3879f2a71e8d02fb051 /gralloc | |
parent | d2276c78d4ec9a99340191eec64c6026b711d7f7 (diff) | |
download | android_hardware_samsung_slsi_exynos5430-f6b4c48a76ccb9cf63b0985e2086a1962f99f4ae.tar.gz android_hardware_samsung_slsi_exynos5430-f6b4c48a76ccb9cf63b0985e2086a1962f99f4ae.tar.xz android_hardware_samsung_slsi_exynos5430-f6b4c48a76ccb9cf63b0985e2086a1962f99f4ae.zip |
Handle sRGB gralloc formats.
gralloc: recognize and allocate sRGB_{A,X}_8888
hwcomposer: punt sRGB formats to FRAMEBUFFER composition
- This would happen already due to the format-supported test, this
change just avoids an unrecognized-format log warning from
exynos5_format_to_bpp().
Bug: 10134664
Change-Id: I78b7791217cbde28d5bc7d02caf6a955960828ce
Diffstat (limited to 'gralloc')
-rw-r--r-- | gralloc/gralloc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gralloc/gralloc.cpp b/gralloc/gralloc.cpp index d4d07a7..87f641c 100644 --- a/gralloc/gralloc.cpp +++ b/gralloc/gralloc.cpp @@ -154,6 +154,8 @@ static int gralloc_alloc_rgb(int ionfd, int w, int h, int format, int usage, case HAL_PIXEL_FORMAT_RGBA_8888: case HAL_PIXEL_FORMAT_RGBX_8888: case HAL_PIXEL_FORMAT_BGRA_8888: + case HAL_PIXEL_FORMAT_sRGB_A_8888: + case HAL_PIXEL_FORMAT_sRGB_X_8888: bpp = 4; break; case HAL_PIXEL_FORMAT_RGB_888: |