summaryrefslogtreecommitdiffstats
path: root/media/tests/omxjpegdecoder
diff options
context:
space:
mode:
authorJi-Hwan Lee <jihwan@google.com>2014-06-13 20:10:33 +0900
committerJi-Hwan Lee <jihwan@google.com>2014-06-13 20:16:15 +0900
commit162d6999e36d11ddcb6f82921c47683a7d8a56c4 (patch)
treed5c776d9b7b658731e6988f3b8ca8acf809e010a /media/tests/omxjpegdecoder
parent63dd3bb3602bc00557680432b08b49a5a15bcdb7 (diff)
downloadframeworks_base-162d6999e36d11ddcb6f82921c47683a7d8a56c4.zip
frameworks_base-162d6999e36d11ddcb6f82921c47683a7d8a56c4.tar.gz
frameworks_base-162d6999e36d11ddcb6f82921c47683a7d8a56c4.tar.bz2
jpeg_bench: Fix checkbuild
Change-Id: I73d82ffc022be4fc78ff0d8b62ab541dd896df24
Diffstat (limited to 'media/tests/omxjpegdecoder')
-rw-r--r--media/tests/omxjpegdecoder/omx_jpeg_decoder.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/tests/omxjpegdecoder/omx_jpeg_decoder.cpp b/media/tests/omxjpegdecoder/omx_jpeg_decoder.cpp
index 3dd988e..a4d292a 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) {