Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: src/codec/SkWebpCodec.cpp

Issue 2274863002: sk_at_scope_end (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: use it! Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698