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

Issue 316063005: Fix error revealed by Android unit test (Closed)

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

Description

Fix error revealed by Android unit test The issue is/was that the original Picture/PictureRecorder that is being partially replayed is not guaranteed to issue any more commands before attempting to modify the existing data. Such modification is prohibited if there is a extant copy-on-write snapshot. Rather then further complicate the SkWriter32::snapshot capability for a dis-preferred use case, this CL simply copies the operation data. Committed: https://skia.googlesource.com/skia/+/9058d602d0303c4d601bea260929367a8be37f04

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address code review issues and update to ToT #

Total comments: 2

Patch Set 3 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -5 lines) Patch
M src/core/SkPicture.cpp View 1 1 chunk +7 lines, -1 line 0 comments Download
M src/core/SkPicturePlayback.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 chunks +8 lines, -2 lines 0 comments Download
M src/core/SkPictureRecorder.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M tests/PictureTest.cpp View 1 2 2 chunks +58 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
robertphillips
6 years, 6 months ago (2014-06-09 22:19:30 UTC) #1
reed1
lgtm w/ crazy suggestions https://codereview.chromium.org/316063005/diff/1/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.chromium.org/316063005/diff/1/src/core/SkPicture.cpp#newcode144 src/core/SkPicture.cpp:144: // will occur). In this ...
6 years, 6 months ago (2014-06-10 12:29:03 UTC) #2
scroggo
https://codereview.chromium.org/316063005/diff/1/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.chromium.org/316063005/diff/1/src/core/SkPicture.cpp#newcode141 src/core/SkPicture.cpp:141: // FakeEndRecording is only called from partialReplay. For that ...
6 years, 6 months ago (2014-06-10 13:31:25 UTC) #3
robertphillips
https://codereview.chromium.org/316063005/diff/1/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.chromium.org/316063005/diff/1/src/core/SkPicture.cpp#newcode141 src/core/SkPicture.cpp:141: // FakeEndRecording is only called from partialReplay. For that ...
6 years, 6 months ago (2014-06-10 17:26:28 UTC) #4
robertphillips
https://codereview.chromium.org/316063005/diff/1/tests/PictureTest.cpp File tests/PictureTest.cpp (right): https://codereview.chromium.org/316063005/diff/1/tests/PictureTest.cpp#newcode1020 tests/PictureTest.cpp:1020: REPORTER_ASSERT(reporter, afterClip.height() == 4); Switch to storing a beforeClip ...
6 years, 6 months ago (2014-06-10 17:27:24 UTC) #5
scroggo
lgtm https://codereview.chromium.org/316063005/diff/20001/tests/PictureTest.cpp File tests/PictureTest.cpp (right): https://codereview.chromium.org/316063005/diff/20001/tests/PictureTest.cpp#newcode1002 tests/PictureTest.cpp:1002: // doesn't effect the canvas' save count or ...
6 years, 6 months ago (2014-06-10 17:39:40 UTC) #6
robertphillips
https://codereview.chromium.org/316063005/diff/20001/tests/PictureTest.cpp File tests/PictureTest.cpp (right): https://codereview.chromium.org/316063005/diff/20001/tests/PictureTest.cpp#newcode1002 tests/PictureTest.cpp:1002: // doesn't effect the canvas' save count or matrix/clip ...
6 years, 6 months ago (2014-06-10 17:43:06 UTC) #7
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 6 months ago (2014-06-10 17:44:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/316063005/40001
6 years, 6 months ago (2014-06-10 17:45:12 UTC) #9
commit-bot: I haz the power
6 years, 6 months ago (2014-06-10 18:45:53 UTC) #10
Message was sent while issue was closed.
Change committed as 9058d602d0303c4d601bea260929367a8be37f04

Powered by Google App Engine
This is Rietveld 408576698