| Index: bench/subset/SubsetTranslateBench.cpp
|
| diff --git a/bench/subset/SubsetTranslateBench.cpp b/bench/subset/SubsetTranslateBench.cpp
|
| index 708cb553c79243023611d102866f917f386de545..2e66c3807eda78d1113109fb2dd84b91507296bc 100644
|
| --- a/bench/subset/SubsetTranslateBench.cpp
|
| +++ b/bench/subset/SubsetTranslateBench.cpp
|
| @@ -60,11 +60,11 @@ void SubsetTranslateBench::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;
|
| // Note that we use the same bitmap for all of the subsets.
|
|
|