Index: bench/CodecBench.cpp |
diff --git a/bench/CodecBench.cpp b/bench/CodecBench.cpp |
index 9bd404db55e05658aaf41579abeee036489f5cf3..e3bf1ccb22bade5d6e134adeaa3f824994a0a028 100644 |
--- a/bench/CodecBench.cpp |
+++ b/bench/CodecBench.cpp |
@@ -26,7 +26,7 @@ CodecBench::CodecBench(SkString baseName, SkData* encoded, SkColorType colorType |
alpha_type_to_str(alphaType)); |
#ifdef SK_DEBUG |
// Ensure that we can create an SkCodec from this data. |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(fData)); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(fData.get())); |
SkASSERT(codec); |
#endif |
} |
@@ -40,7 +40,7 @@ bool CodecBench::isSuitableFor(Backend backend) { |
} |
void CodecBench::onDelayedSetup() { |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(fData)); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(fData.get())); |
fInfo = codec->getInfo().makeColorType(fColorType) |
.makeAlphaType(fAlphaType) |
@@ -59,7 +59,7 @@ void CodecBench::onDraw(int n, SkCanvas* canvas) { |
} |
for (int i = 0; i < n; i++) { |
colorCount = 256; |
- codec.reset(SkCodec::NewFromData(fData)); |
+ codec.reset(SkCodec::NewFromData(fData.get())); |
#ifdef SK_DEBUG |
const SkCodec::Result result = |
#endif |