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

Issue 246893005: Refactor SkPictureStateTree::Iterator to avoid use of kClip_SaveFlag. (Closed)

Created:
6 years, 8 months ago by f(malita)
Modified:
6 years, 7 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Refactor SkPictureStateTree::Iterator to avoid use of kClip_SaveFlag. The current implementation relies on soon-to-be-deprecated kClip_SaveFlag behavior. Updated to use default save flags (kMatrixClip_SaveFlag) and stop assuming that the matrix survives restore() calls. R=junov@chromium.org,robertphillips@chromium.org,reed@google.com Committed: http://code.google.com/p/skia/source/detail?r=14319 Committed: http://code.google.com/p/skia/source/detail?r=14421

Patch Set 1 #

Total comments: 5

Patch Set 2 : Added setCurrentMatrix() comment per review. #

Patch Set 3 : http://crbug.com/366889 fix + test #

Total comments: 6

Patch Set 4 : Updated per comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -32 lines) Patch
M gyp/tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M src/core/SkPictureStateTree.h View 2 chunks +6 lines, -2 lines 0 comments Download
M src/core/SkPictureStateTree.cpp View 1 2 3 5 chunks +33 lines, -27 lines 0 comments Download
A tests/PictureStateTreeTest.cpp View 1 2 3 1 chunk +123 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
f(malita)
6 years, 8 months ago (2014-04-22 13:56:38 UTC) #1
Justin Novosad
Test?
6 years, 8 months ago (2014-04-22 15:01:58 UTC) #2
f(malita)
On 2014/04/22 15:01:58, junov wrote: > Test? What kind of test do you have in ...
6 years, 8 months ago (2014-04-22 15:09:04 UTC) #3
Justin Novosad
On 2014/04/22 15:09:04, Florin Malita wrote: > On 2014/04/22 15:01:58, junov wrote: > > Test? ...
6 years, 8 months ago (2014-04-22 15:15:21 UTC) #4
Justin Novosad
General question: In what situation does fCanvas->restore() not restore the CTM to the right thing? ...
6 years, 8 months ago (2014-04-22 15:31:33 UTC) #5
f(malita)
https://codereview.chromium.org/246893005/diff/1/src/core/SkPictureStateTree.cpp File src/core/SkPictureStateTree.cpp (left): https://codereview.chromium.org/246893005/diff/1/src/core/SkPictureStateTree.cpp#oldcode111 src/core/SkPictureStateTree.cpp:111: while (NULL != fCurrentNode) { On 2014/04/22 15:31:34, junov ...
6 years, 8 months ago (2014-04-22 15:48:38 UTC) #6
Justin Novosad
I would still like to better understand: In what situation does fCanvas->restore() not restore the ...
6 years, 8 months ago (2014-04-22 17:03:31 UTC) #7
f(malita)
On 2014/04/22 17:03:31, junov wrote: > I would still like to better understand: In what ...
6 years, 8 months ago (2014-04-22 18:02:46 UTC) #8
Justin Novosad
On 2014/04/22 18:02:46, Florin Malita wrote: > On 2014/04/22 17:03:31, junov wrote: > > I ...
6 years, 8 months ago (2014-04-22 18:10:40 UTC) #9
f(malita)
On 2014/04/22 18:10:40, junov wrote: > On 2014/04/22 18:02:46, Florin Malita wrote: > > The ...
6 years, 8 months ago (2014-04-22 18:20:10 UTC) #10
Justin Novosad
On 2014/04/22 18:20:10, Florin Malita wrote: > On 2014/04/22 18:10:40, junov wrote: > > On ...
6 years, 8 months ago (2014-04-22 18:34:34 UTC) #11
robertphillips
I have nothing to add since I'm not familiar with this part of the code.
6 years, 8 months ago (2014-04-22 18:44:17 UTC) #12
f(malita)
Had a chat with Mike about this, and he's on board with the general approach ...
6 years, 8 months ago (2014-04-23 02:30:20 UTC) #13
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 8 months ago (2014-04-23 02:30:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fmalita@chromium.org/246893005/20001
6 years, 8 months ago (2014-04-23 02:30:39 UTC) #15
commit-bot: I haz the power
Change committed as 14319
6 years, 8 months ago (2014-04-23 02:46:22 UTC) #16
bsalomon
A revert of this CL has been created in https://codereview.chromium.org/250733007/ by bsalomon@google.com. The reason for ...
6 years, 8 months ago (2014-04-25 15:12:53 UTC) #17
f(malita)
On 2014/04/25 15:12:53, bsalomon wrote: > A revert of this CL has been created in ...
6 years, 8 months ago (2014-04-25 17:53:03 UTC) #18
f(malita)
Found the bug: - fCurrentNode = fCurrentNode->fParent; - while (NULL != fCurrentNode) { - if ...
6 years, 8 months ago (2014-04-25 19:46:34 UTC) #19
f(malita)
Re-uploaded with fix + test. PTAL.
6 years, 8 months ago (2014-04-25 21:52:36 UTC) #20
Justin Novosad
Looks fine to me, except that I find some comments should be added to explain ...
6 years, 8 months ago (2014-04-25 22:43:41 UTC) #21
f(malita)
https://codereview.chromium.org/246893005/diff/40001/src/core/SkPictureStateTree.cpp File src/core/SkPictureStateTree.cpp (right): https://codereview.chromium.org/246893005/diff/40001/src/core/SkPictureStateTree.cpp#newcode129 src/core/SkPictureStateTree.cpp:129: if (fCurrentNode->fFlags & Node::kSaveLayer_Flag) { On 2014/04/25 22:43:41, junov ...
6 years, 7 months ago (2014-04-28 13:10:25 UTC) #22
Justin Novosad
lgtm
6 years, 7 months ago (2014-04-28 15:25:26 UTC) #23
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 7 months ago (2014-04-28 20:11:17 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fmalita@chromium.org/246893005/60001
6 years, 7 months ago (2014-04-28 20:11:30 UTC) #25
commit-bot: I haz the power
6 years, 7 months ago (2014-04-28 20:17:52 UTC) #26
Message was sent while issue was closed.
Change committed as 14421

Powered by Google App Engine
This is Rietveld 408576698