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

Unified Diff: src/core/SkPicturePlayback.cpp

Issue 286033005: Ensure playing back a picture always balances saves and restores (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | tests/PictureTest.cpp » ('j') | tests/PictureTest.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPicturePlayback.cpp
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp
index f2356bdeff58a606e07698e17e4ec7348900f2e4..97ca60169d50ada4c14110fc849c2cebe8747608 100644
--- a/src/core/SkPicturePlayback.cpp
+++ b/src/core/SkPicturePlayback.cpp
@@ -1321,6 +1321,8 @@ void SkPicturePlayback::draw(SkCanvas& canvas, SkDrawPictureCallback* callback)
}
}
+ canvas.restoreToCount(originalSaveCount);
scroggo 2014/05/16 18:20:53 There are a couple of other places where we return
robertphillips 2014/05/16 19:18:15 Done.
+
#ifdef SPEW_CLIP_SKIPPING
{
size_t size = skipRect.fSize + skipRRect.fSize + skipPath.fSize + skipRegion.fSize +
« no previous file with comments | « no previous file | tests/PictureTest.cpp » ('j') | tests/PictureTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698