aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CodecPriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/CodecPriv.h')
-rw-r--r--tests/CodecPriv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CodecPriv.h b/tests/CodecPriv.h
index 50c205c16a..cfa794ed68 100644
--- a/tests/CodecPriv.h
+++ b/tests/CodecPriv.h
@@ -29,7 +29,7 @@ inline bool decode_memory(const void* mem, size_t size, SkBitmap* bm) {
colorCountPtr = &maxColors;
}
- bm->allocPixels(codec->getInfo(), nullptr, colorTable.get());
+ bm->allocPixels(codec->getInfo(), colorTable);
const SkCodec::Result result = codec->getPixels(codec->getInfo(), bm->getPixels(),
bm->rowBytes(), nullptr, colorPtr, colorCountPtr);
return result == SkCodec::kSuccess || result == SkCodec::kIncompleteInput;