Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88d842fe authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

Add support for bitmaps with Grey_8 color type.

bug: 26679788
Change-Id: Ib5524e3e204e1478461c7371c411e96285feb9c7
parent 485a8d14
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;