diff --git a/media/tests/omxjpegdecoder/omx_jpeg_decoder.cpp b/media/tests/omxjpegdecoder/omx_jpeg_decoder.cpp index 3dd988eea63b6..a4d292a71e431 100644 --- a/media/tests/omxjpegdecoder/omx_jpeg_decoder.cpp +++ b/media/tests/omxjpegdecoder/omx_jpeg_decoder.cpp @@ -104,7 +104,9 @@ bool OmxJpegImageDecoder::onDecode(SkStream* stream, int height; meta->findInt32(kKeyWidth, &width); meta->findInt32(kKeyHeight, &height); - configBitmapSize(bm, getPrefConfig(k32Bit_SrcDepth, false), width, height); + configBitmapSize( + bm, SkColorTypeToBitmapConfig(getPrefColorType(k32Bit_SrcDepth, false)), + width, height); // mode == DecodeBounds if (mode == SkImageDecoder::kDecodeBounds_Mode) {