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

Issue 12545009: Adding option in SkPicture to record device-space bounds of draw commands. (Closed)

Created:
7 years, 9 months ago by Justin Novosad
Modified:
6 years, 9 months ago
CC:
skia-review_googlegroups.com, ernstm
Visibility:
Public.

Description

Adding build option in SkPicture to record device-space bounds of draw commands.

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : #

Patch Set 4 : #

Total comments: 24

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 13

Patch Set 10 : #

Patch Set 11 : #

Total comments: 28

Patch Set 12 : #

Total comments: 2

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Total comments: 2

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+773 lines, -150 lines) Patch
M include/core/SkCanvas.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M src/core/SkBBoxHierarchyRecord.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -1 line 0 comments Download
M src/core/SkBBoxHierarchyRecord.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +9 lines, -0 lines 0 comments Download
M src/core/SkBBoxRecord.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M src/core/SkBBoxRecord.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +113 lines, -1 line 1 comment Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +36 lines, -24 lines 1 comment Download
M src/core/SkPicture.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M src/core/SkPicturePlayback.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +5 lines, -0 lines 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 17 7 chunks +96 lines, -16 lines 6 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +19 lines, -27 lines 1 comment 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 35 chunks +446 lines, -81 lines 4 comments Download
M tests/PictureTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
Justin Novosad
This is a first increment in getting SkPicture to use pre-computed bounds. It is not ...
7 years, 9 months ago (2013-03-06 22:20:11 UTC) #1
robertphillips
initial comments https://codereview.chromium.org/12545009/diff/1007/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.chromium.org/12545009/diff/1007/src/core/SkPicture.cpp#newcode322 src/core/SkPicture.cpp:322: } NULL != https://codereview.chromium.org/12545009/diff/1007/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): ...
7 years, 9 months ago (2013-03-06 23:02:02 UTC) #2
Justin Novosad
https://codereview.chromium.org/12545009/diff/1007/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/12545009/diff/1007/src/core/SkPictureRecord.cpp#newcode752 src/core/SkPictureRecord.cpp:752: initialOffset = this->addDrawWithBounds(DRAW_POINTS, &size, &paint, &bbox); On 2013/03/06 23:02:02, ...
7 years, 9 months ago (2013-03-07 14:41:42 UTC) #3
Justin Novosad
Patch Set 3: addresses the simple review comments. Working on the rest...
7 years, 9 months ago (2013-03-07 14:44:06 UTC) #4
Justin Novosad
Patch! * Got Rid of fLastDrawRejected. Can put it back later if we absolutely need ...
7 years, 9 months ago (2013-03-07 16:43:02 UTC) #5
robertphillips
I think it's looking good - Mike, any comments? https://codereview.chromium.org/12545009/diff/16001/src/core/SkPicturePlayback.cpp File src/core/SkPicturePlayback.cpp (right): https://codereview.chromium.org/12545009/diff/16001/src/core/SkPicturePlayback.cpp#newcode699 src/core/SkPicturePlayback.cpp:699: ...
7 years, 9 months ago (2013-03-07 18:37:40 UTC) #6
robertphillips
In a separate CL we should also add the new bounds to the debugger's details ...
7 years, 9 months ago (2013-03-07 19:51:17 UTC) #7
Justin Novosad
https://codereview.chromium.org/12545009/diff/16001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/12545009/diff/16001/src/core/SkPictureRecord.cpp#newcode65 src/core/SkPictureRecord.cpp:65: bool SkPictureRecord::canRecordBounds(DrawType op) { It needs to be accessible ...
7 years, 9 months ago (2013-03-07 20:25:47 UTC) #8
Justin Novosad
Patch.
7 years, 9 months ago (2013-03-07 20:26:06 UTC) #9
reed1
There is a fair amount of plumbing here to make it a runtime option. Is ...
7 years, 9 months ago (2013-03-07 20:36:44 UTC) #10
robertphillips
https://codereview.chromium.org/12545009/diff/16001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/12545009/diff/16001/src/core/SkPictureRecord.cpp#newcode1223 src/core/SkPictureRecord.cpp:1223: bbox.fLeft = xpos[0]; Since we have no guarantee of ...
7 years, 9 months ago (2013-03-07 20:57:37 UTC) #11
Justin Novosad
On 2013/03/07 20:36:44, reed1 wrote: > There is a fair amount of plumbing here to ...
7 years, 9 months ago (2013-03-07 21:08:51 UTC) #12
Justin Novosad
Good catch. I guess we just have to start that loop at zero.
7 years, 9 months ago (2013-03-07 21:48:31 UTC) #13
Justin Novosad
https://codereview.chromium.org/12545009/diff/16001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/12545009/diff/16001/src/core/SkPictureRecord.cpp#newcode1065 src/core/SkPictureRecord.cpp:1065: // incorrect on most platforms (too small in Linux, ...
7 years, 9 months ago (2013-03-08 14:49:13 UTC) #14
Justin Novosad
The perf win from this change is still not measurable because I still have to ...
7 years, 9 months ago (2013-03-08 15:13:41 UTC) #15
reed1
What if we just create a temp build-flag for this, rather than all of the ...
7 years, 9 months ago (2013-03-08 15:45:07 UTC) #16
Justin Novosad
Patch. Made the option a build-time option. Verified that there is no measurable perf impact ...
7 years, 9 months ago (2013-03-08 18:08:26 UTC) #17
Justin Novosad
FYI: a lot of the plumbing related to turning recordBounds on/off at run time is ...
7 years, 9 months ago (2013-03-08 18:12:47 UTC) #18
reed1
ah, I see what you did. I was hoping for the opposite of adding yet ...
7 years, 9 months ago (2013-03-08 18:24:42 UTC) #19
Justin Novosad
Patch.
7 years, 9 months ago (2013-03-08 20:02:12 UTC) #20
reed1
https://codereview.chromium.org/12545009/diff/48001/src/core/SkPicturePlayback.cpp File src/core/SkPicturePlayback.cpp (right): https://codereview.chromium.org/12545009/diff/48001/src/core/SkPicturePlayback.cpp#newcode130 src/core/SkPicturePlayback.cpp:130: fHasRecordedBounds = true; do we want false here? https://codereview.chromium.org/12545009/diff/48001/src/core/SkPicturePlayback.cpp#newcode596 ...
7 years, 9 months ago (2013-03-08 20:23:23 UTC) #21
robertphillips
https://codereview.chromium.org/12545009/diff/60001/src/core/SkPicturePlayback.cpp File src/core/SkPicturePlayback.cpp (right): https://codereview.chromium.org/12545009/diff/60001/src/core/SkPicturePlayback.cpp#newcode129 src/core/SkPicturePlayback.cpp:129: #else false? or leave off #else since it is ...
7 years, 9 months ago (2013-03-08 20:40:04 UTC) #22
Justin Novosad
Patch! https://codereview.chromium.org/12545009/diff/48001/src/core/SkPicturePlayback.cpp File src/core/SkPicturePlayback.cpp (right): https://codereview.chromium.org/12545009/diff/48001/src/core/SkPicturePlayback.cpp#newcode130 src/core/SkPicturePlayback.cpp:130: fHasRecordedBounds = true; On 2013/03/08 20:23:23, reed1 wrote: ...
7 years, 9 months ago (2013-03-08 22:35:42 UTC) #23
robertphillips
LGTM https://codereview.chromium.org/12545009/diff/48001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/12545009/diff/48001/src/core/SkPictureRecord.cpp#newcode520 src/core/SkPictureRecord.cpp:520: if (0 != (*size & ~MASK_24) || *size ...
7 years, 9 months ago (2013-03-11 17:31:39 UTC) #24
Justin Novosad
https://codereview.chromium.org/12545009/diff/65001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/12545009/diff/65001/src/core/SkPictureRecord.cpp#newcode516 src/core/SkPictureRecord.cpp:516: On 2013/03/11 17:31:39, robertphillips wrote: > left justify the ...
7 years, 9 months ago (2013-03-11 17:52:10 UTC) #25
reed1
Do you have tests to validate correctness/performance of this change, with different initial matrices and ...
7 years, 9 months ago (2013-03-11 18:46:46 UTC) #26
Justin Novosad
On 2013/03/11 18:46:46, reed1 wrote: > Do you have tests to validate correctness/performance of this ...
7 years, 9 months ago (2013-03-11 19:01:13 UTC) #27
reed1
On 2013/03/11 19:01:13, junov wrote: > On 2013/03/11 18:46:46, reed1 wrote: > > Do you ...
7 years, 9 months ago (2013-03-11 19:06:25 UTC) #28
Justin Novosad
On 2013/03/11 19:06:25, reed1 wrote: > > Where is that happening? I must have missed ...
7 years, 9 months ago (2013-03-11 19:23:16 UTC) #29
Justin Novosad
After all, there is no bug. It does all work fine. I just forgot the ...
7 years, 9 months ago (2013-03-11 20:10:20 UTC) #30
reed1
https://codereview.chromium.org/12545009/diff/29004/tests/PictureTest.cpp File tests/PictureTest.cpp (right): https://codereview.chromium.org/12545009/diff/29004/tests/PictureTest.cpp#newcode423 tests/PictureTest.cpp:423: static void test_subregion_playback(skiatest::Reporter* reporter) { Can you simplify or ...
7 years, 9 months ago (2013-03-12 16:05:04 UTC) #31
reed1
One metric for "correctness" might be to (potentially ahead of this CL) augment SkCanvas to ...
7 years, 9 months ago (2013-03-12 16:06:39 UTC) #32
reed1
... then we could run this CL through not only translates, but scales (and other) ...
7 years, 9 months ago (2013-03-12 16:07:13 UTC) #33
Justin Novosad
I'm resurrecting this CL! New Patch. Addressed all previous comments and updated to ToT skia. ...
7 years, 7 months ago (2013-05-13 20:12:35 UTC) #34
reed1
May need a more detail description for the CL, detailing the changes/impact on canvas, recording, ...
7 years, 7 months ago (2013-05-14 13:31:11 UTC) #35
Tom Hudson
https://codereview.chromium.org/12545009/diff/124002/src/core/SkBBoxRecord.cpp File src/core/SkBBoxRecord.cpp (right): https://codereview.chromium.org/12545009/diff/124002/src/core/SkBBoxRecord.cpp#newcode71 src/core/SkBBoxRecord.cpp:71: INHERITED::drawPoints(mode, count, pts, paint); I like the way this ...
7 years, 7 months ago (2013-05-14 17:00:49 UTC) #36
tomhudson
6 years, 10 months ago (2014-02-26 10:36:01 UTC) #37
This is still open; from email I think it's been abandoned?

Powered by Google App Engine
This is Rietveld 408576698