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

Issue 2127233002: Added the framework for having canvas/recorder/picture record depth_set's. (Closed)

Created:
4 years, 5 months ago by vjiaoblack
Modified:
4 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 10

Patch Set 2 : Updated comments. #

Total comments: 4

Patch Set 3 : Made requested changes! #

Total comments: 6

Patch Set 4 : Updated requested changes (more functions, added to Debug, etc) #

Total comments: 14

Patch Set 5 : Made requested changes. #

Patch Set 6 : Created tests for canvas depth setting #

Total comments: 16

Patch Set 7 : Fixed crumbs #

Total comments: 18

Patch Set 8 : Fixed more crumbs #

Total comments: 2

Patch Set 9 : Fixed more crumbs!! #

Patch Set 10 : Added comment and default value to depth #

Total comments: 8

Patch Set 11 : Made requested changes. #

Patch Set 12 : Fixed up some small things. #

Patch Set 13 : Made setZ translateZ #

Total comments: 21

Patch Set 14 : Made requested changes - most of 'em #

Patch Set 15 : Removed some dumb + 33 stuff #

Patch Set 16 : Made 3.14 a 3.14f for windows #

Total comments: 2

Patch Set 17 : Added TRANSLATE_Z handler in SkPicturePlayback::handleOp #

Total comments: 2

Patch Set 18 : Added suggested comment #

Total comments: 2

Patch Set 19 : Made requested comment change. #

Patch Set 20 : Added recordTranslateZ(); fixed enum declaration placement issue #

Patch Set 21 : updated tests to be more rigorous about translateZ in playback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -5 lines) Patch
M include/core/SkCanvas.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +12 lines, -0 lines 0 comments Download
M include/private/SkRecords.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +16 lines, -1 line 0 comments Download
M src/core/SkPictureFlat.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -1 line 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -2 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 5 6 7 8 9 10 11 12 20 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +10 lines, -0 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M src/core/SkRecorder.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkRecorder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M tests/CanvasTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +53 lines, -0 lines 0 comments Download
M tools/debugger/SkDebugCanvas.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M tools/debugger/SkDebugCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M tools/debugger/SkDrawCommand.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +15 lines, -1 line 0 comments Download
M tools/debugger/SkDrawCommand.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +37 lines, -0 lines 0 comments Download

Messages

Total messages: 93 (34 generated)
vjiaoblack
Same as the previous CL, but without the half-baked GM!
4 years, 5 months ago (2016-07-07 18:18:46 UTC) #3
vjiaoblack
4 years, 5 months ago (2016-07-07 18:34:51 UTC) #4
jvanverth1
Some comments. I would also edit the description to clean up your commit comments -- ...
4 years, 5 months ago (2016-07-07 18:43:02 UTC) #5
vjiaoblack
https://codereview.chromium.org/2127233002/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/1/include/core/SkCanvas.h#newcode1399 include/core/SkCanvas.h:1399: uint32_t curDrawDepth = 0; On 2016/07/07 18:43:02, jvanverth1 wrote: ...
4 years, 5 months ago (2016-07-07 19:04:10 UTC) #8
jvanverth1
Last comments from me. I defer to robertphillips@ for the rest. https://codereview.chromium.org/2127233002/diff/20001/include/core/SkLights.h File include/core/SkLights.h (left): ...
4 years, 5 months ago (2016-07-07 19:08:35 UTC) #9
vjiaoblack
Done! Sorry for all these code crumbs. I was passively relying on CLion to tell ...
4 years, 5 months ago (2016-07-07 19:17:56 UTC) #10
Brian Osman
https://codereview.chromium.org/2127233002/diff/40001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/40001/include/core/SkCanvas.h#newcode451 include/core/SkCanvas.h:451: void setZ(uint32_t z) { If this (and the member ...
4 years, 5 months ago (2016-07-07 20:06:37 UTC) #12
robertphillips
We also want the setZ calls to appear in the debugger! https://codereview.chromium.org/2127233002/diff/40001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): ...
4 years, 5 months ago (2016-07-07 20:43:08 UTC) #13
vjiaoblack
Implemented changes. Have not yet done the assert to ensure painter's order - thinking I ...
4 years, 5 months ago (2016-07-08 17:13:47 UTC) #14
robertphillips
> Have not yet done the assert to ensure painter's order - > thinking I ...
4 years, 5 months ago (2016-07-08 17:22:24 UTC) #15
vjiaoblack
On 2016/07/08 17:22:24, robertphillips wrote: > > Have not yet done the assert to ensure ...
4 years, 5 months ago (2016-07-08 17:23:16 UTC) #16
robertphillips
Please add a unit test https://codereview.chromium.org/2127233002/diff/60001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/60001/include/core/SkCanvas.h#newcode447 include/core/SkCanvas.h:447: /** Set the current ...
4 years, 5 months ago (2016-07-08 17:26:43 UTC) #17
vjiaoblack
And added a test! https://codereview.chromium.org/2127233002/diff/60001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/60001/include/core/SkCanvas.h#newcode447 include/core/SkCanvas.h:447: /** Set the current draw ...
4 years, 5 months ago (2016-07-11 18:04:42 UTC) #18
jvanverth1
https://codereview.chromium.org/2127233002/diff/100001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/100001/include/core/SkCanvas.h#newcode452 include/core/SkCanvas.h:452: void setZ(SkScalar z); Based on today's discussion, this should ...
4 years, 5 months ago (2016-07-11 18:13:44 UTC) #19
robertphillips
https://codereview.chromium.org/2127233002/diff/100001/tests/CanvasTest.cpp File tests/CanvasTest.cpp (right): https://codereview.chromium.org/2127233002/diff/100001/tests/CanvasTest.cpp#newcode783 tests/CanvasTest.cpp:783: public: kCanvas* ? https://codereview.chromium.org/2127233002/diff/100001/tests/CanvasTest.cpp#newcode787 tests/CanvasTest.cpp:787: SkDrawDepthTester(skiatest::Reporter* reporter) { It ...
4 years, 5 months ago (2016-07-11 18:39:35 UTC) #20
vjiaoblack
https://codereview.chromium.org/2127233002/diff/100001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/100001/include/core/SkCanvas.h#newcode452 include/core/SkCanvas.h:452: void setZ(SkScalar z); On 2016/07/11 18:13:43, jvanverth1 wrote: > ...
4 years, 5 months ago (2016-07-11 18:58:03 UTC) #21
robertphillips
y su https://codereview.chromium.org/2127233002/diff/120001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/2127233002/diff/120001/src/core/SkRecordDraw.cpp#newcode291 src/core/SkRecordDraw.cpp:291: line the '{' up with above ones ...
4 years, 5 months ago (2016-07-11 19:24:52 UTC) #22
reed1
https://codereview.chromium.org/2127233002/diff/140001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/140001/include/core/SkCanvas.h#newcode447 include/core/SkCanvas.h:447: /** Set the current draw depth of the canvas. ...
4 years, 5 months ago (2016-07-11 19:36:28 UTC) #24
vjiaoblack
https://codereview.chromium.org/2127233002/diff/120001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/2127233002/diff/120001/src/core/SkRecordDraw.cpp#newcode291 src/core/SkRecordDraw.cpp:291: On 2016/07/11 19:24:52, robertphillips wrote: > line the '{' ...
4 years, 5 months ago (2016-07-11 19:48:13 UTC) #25
robertphillips
lgtm https://codereview.chromium.org/2127233002/diff/180001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/2127233002/diff/180001/src/core/SkCanvas.cpp#newcode296 src/core/SkCanvas.cpp:296: Should probably do this in the ctor with ...
4 years, 5 months ago (2016-07-11 20:57:27 UTC) #26
vjiaoblack
Okay. Committing ~ https://codereview.chromium.org/2127233002/diff/180001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/2127233002/diff/180001/src/core/SkCanvas.cpp#newcode296 src/core/SkCanvas.cpp:296: On 2016/07/11 20:57:26, robertphillips wrote: > ...
4 years, 5 months ago (2016-07-12 13:14:23 UTC) #27
vjiaoblack
Okay. Committing ~
4 years, 5 months ago (2016-07-12 13:14:24 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127233002/200001
4 years, 5 months ago (2016-07-12 13:14:37 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on master.client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/11122)
4 years, 5 months ago (2016-07-12 13:16:28 UTC) #33
vjiaoblack
4 years, 5 months ago (2016-07-12 13:30:17 UTC) #35
bsalomon
What do people think of translateZ rather than setZ? It seems to me like a ...
4 years, 5 months ago (2016-07-12 13:33:54 UTC) #36
vjiaoblack
On 2016/07/12 13:33:54, bsalomon wrote: > What do people think of translateZ rather than setZ? ...
4 years, 5 months ago (2016-07-12 13:39:02 UTC) #37
bsalomon
On 2016/07/12 13:33:54, bsalomon wrote: > What do people think of translateZ rather than setZ? ...
4 years, 5 months ago (2016-07-12 13:39:32 UTC) #38
bsalomon
On 2016/07/12 13:39:02, vjiaoblack wrote: > On 2016/07/12 13:33:54, bsalomon wrote: > > What do ...
4 years, 5 months ago (2016-07-12 13:40:45 UTC) #39
vjiaoblack
On 2016/07/12 13:39:32, bsalomon wrote: > On 2016/07/12 13:33:54, bsalomon wrote: > > What do ...
4 years, 5 months ago (2016-07-12 13:41:15 UTC) #40
bsalomon
On 2016/07/12 13:41:15, vjiaoblack wrote: > On 2016/07/12 13:39:32, bsalomon wrote: > > On 2016/07/12 ...
4 years, 5 months ago (2016-07-12 13:49:01 UTC) #41
vjiaoblack
On 2016/07/12 13:49:01, bsalomon wrote: > On 2016/07/12 13:41:15, vjiaoblack wrote: > > On 2016/07/12 ...
4 years, 5 months ago (2016-07-12 13:49:37 UTC) #42
bsalomon
On 2016/07/12 13:49:37, vjiaoblack wrote: > On 2016/07/12 13:49:01, bsalomon wrote: > > On 2016/07/12 ...
4 years, 5 months ago (2016-07-12 13:51:04 UTC) #43
vjiaoblack
4 years, 5 months ago (2016-07-12 15:17:10 UTC) #44
bsalomon
https://codereview.chromium.org/2127233002/diff/240001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/240001/include/core/SkCanvas.h#newcode454 include/core/SkCanvas.h:454: protected: We usually try to just have one public, ...
4 years, 5 months ago (2016-07-12 15:26:34 UTC) #45
robertphillips
https://codereview.chromium.org/2127233002/diff/240001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/240001/include/core/SkCanvas.h#newcode454 include/core/SkCanvas.h:454: protected: add the word "cumulative" somewhere here ? https://codereview.chromium.org/2127233002/diff/240001/src/core/SkCanvas.cpp ...
4 years, 5 months ago (2016-07-12 15:34:32 UTC) #46
vjiaoblack
https://codereview.chromium.org/2127233002/diff/240001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/240001/include/core/SkCanvas.h#newcode454 include/core/SkCanvas.h:454: protected: On 2016/07/12 15:34:32, robertphillips wrote: > add the ...
4 years, 5 months ago (2016-07-12 16:03:34 UTC) #47
bsalomon
lgtm
4 years, 5 months ago (2016-07-12 16:06:30 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127233002/280001
4 years, 5 months ago (2016-07-12 16:08:27 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on master.client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/9695)
4 years, 5 months ago (2016-07-12 16:19:12 UTC) #53
vjiaoblack
Fixed the windows bug by specifying 3.14f instead of 3.14
4 years, 5 months ago (2016-07-12 17:21:36 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127233002/300001
4 years, 5 months ago (2016-07-12 17:23:29 UTC) #57
commit-bot: I haz the power
Committed patchset #16 (id:300001) as https://skia.googlesource.com/skia/+/6d3fb898d5f73a82e36f11c712a633c3921ed518
4 years, 5 months ago (2016-07-12 21:50:46 UTC) #59
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-12 21:50:49 UTC) #60
mtklein
A revert of this CL (patchset #16 id:300001) has been created in https://codereview.chromium.org/2142183003/ by mtklein@google.com. ...
4 years, 5 months ago (2016-07-12 22:16:54 UTC) #61
mtklein
On 2016/07/12 22:16:54, mtklein wrote: > A revert of this CL (patchset #16 id:300001) has ...
4 years, 5 months ago (2016-07-12 22:17:36 UTC) #62
mtklein
On 2016/07/12 22:17:36, mtklein wrote: > On 2016/07/12 22:16:54, mtklein wrote: > > A revert ...
4 years, 5 months ago (2016-07-12 22:22:01 UTC) #63
msarett
A revert of this CL (patchset #16 id:300001) has been created in https://codereview.chromium.org/2142773004/ by msarett@google.com. ...
4 years, 5 months ago (2016-07-12 22:23:01 UTC) #64
reed1
https://codereview.chromium.org/2127233002/diff/300001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/300001/include/core/SkCanvas.h#newcode452 include/core/SkCanvas.h:452: void translateZ(SkScalar z); As documented, this "sets" the z ...
4 years, 5 months ago (2016-07-12 22:58:03 UTC) #65
jvanverth1
https://codereview.chromium.org/2127233002/diff/300001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/300001/include/core/SkCanvas.h#newcode452 include/core/SkCanvas.h:452: void translateZ(SkScalar z); On 2016/07/12 22:58:03, reed1 wrote: > ...
4 years, 5 months ago (2016-07-13 12:14:33 UTC) #66
jvanverth1
https://codereview.chromium.org/2127233002/diff/320001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/320001/include/core/SkCanvas.h#newcode447 include/core/SkCanvas.h:447: /** Change the current draw depth of the canvas ...
4 years, 5 months ago (2016-07-13 13:54:24 UTC) #74
jvanverth1
https://codereview.chromium.org/2127233002/diff/340001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/340001/include/core/SkCanvas.h#newcode448 include/core/SkCanvas.h:448: @param z The SkScalar depth; it's tracked in the ...
4 years, 5 months ago (2016-07-13 14:39:25 UTC) #75
vjiaoblack
https://codereview.chromium.org/2127233002/diff/320001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2127233002/diff/320001/include/core/SkCanvas.h#newcode447 include/core/SkCanvas.h:447: /** Change the current draw depth of the canvas ...
4 years, 5 months ago (2016-07-13 14:55:43 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127233002/360001
4 years, 5 months ago (2016-07-13 15:05:25 UTC) #79
commit-bot: I haz the power
Committed patchset #19 (id:360001) as https://skia.googlesource.com/skia/+/1185d90c785f743364cc9113d7007a59af07470c
4 years, 5 months ago (2016-07-13 15:35:46 UTC) #81
mtklein_C
A revert of this CL (patchset #19 id:360001) has been created in https://codereview.chromium.org/2150573002/ by mtklein@chromium.org. ...
4 years, 5 months ago (2016-07-13 16:00:20 UTC) #82
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127233002/400001
4 years, 5 months ago (2016-07-13 21:04:33 UTC) #90
commit-bot: I haz the power
Committed patchset #21 (id:400001) as https://skia.googlesource.com/skia/+/e5de130788c8637d2f7df9ddb0241b78e04d5882
4 years, 5 months ago (2016-07-13 21:05:33 UTC) #92
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 21:05:39 UTC) #93
Message was sent while issue was closed.
CQ bit was unchecked.

Powered by Google App Engine
This is Rietveld 408576698