From 88d842fedf9a6c03dee1f2c91bc7a1f51c8438da Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Wed, 20 Jan 2016 10:37:30 -0500 Subject: Add support for bitmaps with Grey_8 color type. bug: 26679788 Change-Id: Ib5524e3e204e1478461c7371c411e96285feb9c7 --- libs/hwui/Texture.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs') diff --git a/libs/hwui/Texture.cpp b/libs/hwui/Texture.cpp index 771d004cb91d..d97602f28ef5 100644 --- a/libs/hwui/Texture.cpp +++ b/libs/hwui/Texture.cpp @@ -188,6 +188,10 @@ static void colorTypeToGlFormatAndType(SkColorType colorType, *outFormat = GL_RGBA; *outType = GL_UNSIGNED_BYTE; break; + case kGray_8_SkColorType: + *outFormat = GL_LUMINANCE; + *outType = GL_UNSIGNED_BYTE; + break; default: LOG_ALWAYS_FATAL("Unsupported bitmap colorType: %d", colorType); break; -- cgit v1.2.3-59-g8ed1b