diff options
Diffstat (limited to 'libs/hwui/Texture.cpp')
| -rw-r--r-- | libs/hwui/Texture.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/Texture.cpp b/libs/hwui/Texture.cpp index c5000e4cadbc..92de89491127 100644 --- a/libs/hwui/Texture.cpp +++ b/libs/hwui/Texture.cpp @@ -180,6 +180,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; |