Index: bench/CodecBench.cpp |
diff --git a/bench/CodecBench.cpp b/bench/CodecBench.cpp |
index e3bf1ccb22bade5d6e134adeaa3f824994a0a028..9bd404db55e05658aaf41579abeee036489f5cf3 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.get())); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(fData)); |
SkASSERT(codec); |
#endif |
} |
@@ -40,7 +40,7 @@ bool CodecBench::isSuitableFor(Backend backend) { |
} |
void CodecBench::onDelayedSetup() { |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(fData.get())); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(fData)); |
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.get())); |
+ codec.reset(SkCodec::NewFromData(fData)); |
#ifdef SK_DEBUG |
const SkCodec::Result result = |
#endif |