From 0b393faf83dd6ae19783e16fa526e605ea241768 Mon Sep 17 00:00:00 2001 From: "Christopher N. Hesse" Date: Sun, 1 May 2016 17:23:54 +0200 Subject: gralloc: Define sRGB formats Android M does not define these anymore, but there are blobs around that need them. Change-Id: I81281f6af2e363866447d6217e88937da729a036 --- gralloc/gralloc.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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 { -- cgit v1.2.3