diff options
author | scroggo <scroggo@google.com> | 2015-10-14 09:00:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-14 09:00:36 -0700 |
commit | fd2b067b9e6a8cc93581a61c67bb8ce3c626f60f (patch) | |
tree | f47668d9ef5bbcd19b098cfdea1646308659ef83 | |
parent | 0b5b6b2105cf6a60824a28e002abf0d322e4344a (diff) |
Remove unnecessary allocation in nanobench
Review URL: https://codereview.chromium.org/1408593002
-rw-r--r-- | bench/nanobench.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp index 781c09f769..a48e963a9e 100644 --- a/bench/nanobench.cpp +++ b/bench/nanobench.cpp @@ -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. " |