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

Issue 286033005: Ensure playing back a picture always balances saves and restores (Closed)

Created:
6 years, 7 months ago by robertphillips
Modified:
6 years, 7 months ago
Reviewers:
scroggo, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Ensure playing back a picture always balances saves and restores This "fixes" the legacy interface's possible creation of pictures with unbalanced save/restores. The Android dox will need to be updated once/if this lands. Committed: http://code.google.com/p/skia/source/detail?r=14772

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -2 lines) Patch
M src/core/SkPicturePlayback.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/PictureTest.cpp View 1 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
robertphillips
6 years, 7 months ago (2014-05-16 17:56:36 UTC) #1
scroggo
https://codereview.chromium.org/286033005/diff/1/src/core/SkPicturePlayback.cpp File src/core/SkPicturePlayback.cpp (right): https://codereview.chromium.org/286033005/diff/1/src/core/SkPicturePlayback.cpp#newcode1324 src/core/SkPicturePlayback.cpp:1324: canvas.restoreToCount(originalSaveCount); There are a couple of other places where ...
6 years, 7 months ago (2014-05-16 18:20:53 UTC) #2
scroggo
https://codereview.chromium.org/286033005/diff/1/tests/PictureTest.cpp File tests/PictureTest.cpp (right): https://codereview.chromium.org/286033005/diff/1/tests/PictureTest.cpp#newcode979 tests/PictureTest.cpp:979: #if defined(SK_SUPPORT_LEGACY_PICTURE_CAN_RECORD) && defined(SK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES) On 2014/05/16 18:20:53, scroggo wrote: ...
6 years, 7 months ago (2014-05-16 18:37:57 UTC) #3
robertphillips
https://codereview.chromium.org/286033005/diff/1/src/core/SkPicturePlayback.cpp File src/core/SkPicturePlayback.cpp (right): https://codereview.chromium.org/286033005/diff/1/src/core/SkPicturePlayback.cpp#newcode1324 src/core/SkPicturePlayback.cpp:1324: canvas.restoreToCount(originalSaveCount); On 2014/05/16 18:20:53, scroggo wrote: > There are ...
6 years, 7 months ago (2014-05-16 19:18:15 UTC) #4
scroggo
On 2014/05/16 19:18:15, robertphillips wrote: > https://codereview.chromium.org/286033005/diff/1/src/core/SkPicturePlayback.cpp > File src/core/SkPicturePlayback.cpp (right): > > https://codereview.chromium.org/286033005/diff/1/src/core/SkPicturePlayback.cpp#newcode1324 > ...
6 years, 7 months ago (2014-05-16 19:28:02 UTC) #5
reed1
lgtm
6 years, 7 months ago (2014-05-19 12:18:48 UTC) #6
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 7 months ago (2014-05-19 12:21:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/286033005/20001
6 years, 7 months ago (2014-05-19 12:21:36 UTC) #8
commit-bot: I haz the power
6 years, 7 months ago (2014-05-19 12:27:01 UTC) #9
Message was sent while issue was closed.
Change committed as 14772

Powered by Google App Engine
This is Rietveld 408576698