Index: bench/subset/SubsetSingleBench.cpp |
diff --git a/bench/subset/SubsetSingleBench.cpp b/bench/subset/SubsetSingleBench.cpp |
index 1828f8771f5acc47cb1595cf65a50a57a20b7eb4..303cd556ec9f47f3b5a72b865ab7ef4538b9ad3b 100644 |
--- a/bench/subset/SubsetSingleBench.cpp |
+++ b/bench/subset/SubsetSingleBench.cpp |
@@ -64,11 +64,11 @@ void SubsetSingleBench::onDraw(const int n, SkCanvas* canvas) { |
SkPMColor colors[256]; |
if (fUseCodec) { |
for (int count = 0; count < n; count++) { |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(fStream->duplicate())); |
- const SkImageInfo info = codec->getInfo().makeColorType(fColorType); |
+ SkAutoTDelete<SkScanlineDecoder> scanlineDecoder( |
+ SkScanlineDecoder::NewFromStream(fStream->duplicate())); |
+ const SkImageInfo info = scanlineDecoder->getInfo().makeColorType(fColorType); |
SkAutoTDeleteArray<uint8_t> row(SkNEW_ARRAY(uint8_t, info.minRowBytes())); |
- SkAutoTDelete<SkScanlineDecoder> scanlineDecoder(codec->getScanlineDecoder( |
- info, NULL, colors, &colorCount)); |
+ scanlineDecoder->start(info, NULL, colors, &colorCount); |
SkBitmap bitmap; |
SkImageInfo subsetInfo = info.makeWH(fSubsetWidth, fSubsetHeight); |