Remove unnecessary allocation in nanobench

Review URL: https://codereview.chromium.org/1408593002
This commit is contained in:
scroggo 2015-10-14 09:00:35 -07:00 committed by Commit bot
parent 0b5b6b2105
commit fd2b067b9e

View File

@ -555,7 +555,6 @@ static bool valid_subset_bench(const SkString& path, SkColorType colorType, bool
SkPMColor colors[256];
int colorCount;
const SkImageInfo info = codec->getInfo().makeColorType(colorType);
SkAutoTDeleteArray<uint8_t> row(new uint8_t[info.minRowBytes()]);
if (codec->startScanlineDecode(info, nullptr, colors, &colorCount) != SkCodec::kSuccess)
{
SkDebugf("Could not create scanline decoder for %s with color type %s. "