Chromium Code Reviews| Index: src/codec/SkWebpCodec.cpp |
| diff --git a/src/codec/SkWebpCodec.cpp b/src/codec/SkWebpCodec.cpp |
| index c28d077bb329826750ebca4bb92ac2f005e2ac02..21cf598419a77148004c83689c9483ac14a56807 100644 |
| --- a/src/codec/SkWebpCodec.cpp |
| +++ b/src/codec/SkWebpCodec.cpp |
| @@ -109,7 +109,7 @@ SkCodec* SkWebpCodec::NewFromStream(SkStream* stream) { |
| SkAutoTCallVProc<WebPDemuxer, WebPDemuxDelete> demux(WebPDemuxPartial(&data, &state)); |
| WebPChunkIterator chunkIterator; |
|
bungeman-skia
2016/08/24 21:39:49
Now that we've established webp has done a silly t
|
| - SkAutoTCallVProc<WebPChunkIterator, WebPDemuxReleaseChunkIterator> autoCI(&chunkIterator); |
| + sk_at_scope_end(WebPDemuxReleaseChunkIterator(&chunkIterator)); |
| if (demux && WebPDemuxGetChunk(demux, "ICCP", 1, &chunkIterator)) { |
|
bungeman-skia
2016/08/24 15:18:17
Is it valid to call WebPDemuxReleaseChunkIterator
mtklein
2016/08/24 16:52:58
Gonna have to leave this one to Matt.
I don't thin
msarett
2016/08/24 17:01:25
I'm following the same pattern as chromium here.
h
|
| colorSpace = SkColorSpace::NewICC(chunkIterator.chunk.bytes, chunkIterator.chunk.size); |
| } |