diff options
author | Christopher N. Hesse <raymanfx@gmail.com> | 2016-05-01 17:23:54 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-06-29 07:49:55 +0200 |
commit | 0b393faf83dd6ae19783e16fa526e605ea241768 (patch) | |
tree | e34ec43301a6fb9d94c4fb7c3fde098653b2e8cf /gralloc | |
parent | f6b4c48a76ccb9cf63b0985e2086a1962f99f4ae (diff) | |
download | android_hardware_samsung_slsi_exynos5430-0b393faf83dd6ae19783e16fa526e605ea241768.tar.gz android_hardware_samsung_slsi_exynos5430-0b393faf83dd6ae19783e16fa526e605ea241768.tar.xz android_hardware_samsung_slsi_exynos5430-0b393faf83dd6ae19783e16fa526e605ea241768.zip |
gralloc: Define sRGB formats
Android M does not define these anymore, but there are
blobs around that need them.
Change-Id: I81281f6af2e363866447d6217e88937da729a036
Diffstat (limited to 'gralloc')
-rw-r--r-- | gralloc/gralloc.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gralloc/gralloc.cpp b/gralloc/gralloc.cpp index 87f641c..10c1d26 100644 --- a/gralloc/gralloc.cpp +++ b/gralloc/gralloc.cpp @@ -47,6 +47,14 @@ #define ION_FLAG_PRESERVE_KMAP 4 +#ifndef HAL_PIXEL_FORMAT_sRGB_A_8888 +#define HAL_PIXEL_FORMAT_sRGB_A_8888 12 +#endif + +#ifndef HAL_PIXEL_FORMAT_sRGB_X_8888 +#define HAL_PIXEL_FORMAT_sRGB_X_8888 13 +#endif + /*****************************************************************************/ struct gralloc_context_t { |