| Index: bench/nanobench.cpp
|
| diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
|
| index e7019dcb8c97c0713ce653a7b3a35865e6696ef7..d554a3df799f2e1997b39d1323b5fe455ce4f2c7 100644
|
| --- a/bench/nanobench.cpp
|
| +++ b/bench/nanobench.cpp
|
| @@ -36,7 +36,6 @@
|
| #include "SkOSFile.h"
|
| #include "SkPictureRecorder.h"
|
| #include "SkPictureUtils.h"
|
| -#include "SkScanlineDecoder.h"
|
| #include "SkString.h"
|
| #include "SkSurface.h"
|
| #include "SkTaskGroup.h"
|
| @@ -520,9 +519,7 @@ static bool valid_subset_bench(const SkString& path, SkColorType colorType, bool
|
| int colorCount;
|
| const SkImageInfo info = codec->getInfo().makeColorType(colorType);
|
| SkAutoTDeleteArray<uint8_t> row(new uint8_t[info.minRowBytes()]);
|
| - SkAutoTDelete<SkScanlineDecoder> scanlineDecoder(SkScanlineDecoder::NewFromData(encoded));
|
| - if (nullptr == scanlineDecoder || scanlineDecoder->start(info, nullptr,
|
| - colors, &colorCount) != SkCodec::kSuccess)
|
| + if (codec->start(info, nullptr, colors, &colorCount) != SkCodec::kSuccess)
|
| {
|
| SkDebugf("Could not create scanline decoder for %s with color type %s. "
|
| "Skipping bench.\n", path.c_str(), get_color_name(colorType));
|
|
|