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

Issue 971803002: Update SkPicture cull rects with RTree information (Closed)

Created:
5 years, 9 months ago by Stephen Chennney
Modified:
5 years, 9 months ago
Reviewers:
mtklein, reed2, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Update SkPicture cull rects with RTree information When computed, the RTree for an SkPicture will have a root bounds that reflects the best bounding information available, rather than the best estimate at the time the picture recorder is created. Given that creators frequently don't know ahead of time what will be drawn, the RTree bound is often tighter. Perf testing on Chrome indicates a small raster performance advantage. For upcoming painting changes in Chrome the performance advantage is much larger. BUG= Committed: https://skia.googlesource.com/skia/+/2dd3b6647dc726f36fd8774b3d0d2e83b493aeac Committed: https://skia.googlesource.com/skia/+/23d8593f8127411d9d687b4565b34b4ecd6b11d3

Patch Set 1 : Removed unchanged file. #

Patch Set 2 : Fix test BBHs #

Patch Set 3 : More trybot debugging. #

Patch Set 4 : Still trying. #

Patch Set 5 : Fix the assertion #

Patch Set 6 : Fix bound for drawSprite #

Patch Set 7 : Fix the bug breaking CC unit tests. #

Total comments: 1

Patch Set 8 : Now with all changes, and better clip logic #

Total comments: 1

Patch Set 9 : Fix extra line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -8 lines) Patch
M src/core/SkBBoxHierarchy.h View 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/core/SkPictureRecorder.cpp View 1 2 3 4 7 1 chunk +4 lines, -0 lines 0 comments Download
M src/core/SkRTree.h View 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/core/SkRTree.cpp View 7 1 chunk +8 lines, -0 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 3 4 5 6 7 8 3 chunks +16 lines, -5 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 4 7 3 chunks +6 lines, -3 lines 0 comments Download
M tests/RecordDrawTest.cpp View 1 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 51 (14 generated)
Stephen Chennney
I tried this to good effect. Landing it will make RTree construction from display lists ...
5 years, 9 months ago (2015-03-02 17:57:56 UTC) #3
Stephen Chennney
Not sure if you noticed this.
5 years, 9 months ago (2015-03-03 17:55:55 UTC) #5
mtklein
On 2015/03/03 17:55:55, Stephen Chenney wrote: > Not sure if you noticed this. Oh, yeah, ...
5 years, 9 months ago (2015-03-03 17:59:29 UTC) #6
mtklein
lgtm
5 years, 9 months ago (2015-03-03 18:02:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/971803002/20001
5 years, 9 months ago (2015-03-03 18:03:13 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-Shared-Trybot/builds/2393)
5 years, 9 months ago (2015-03-03 18:04:55 UTC) #11
Stephen Chennney
Gotta fix the tests. Sorry.
5 years, 9 months ago (2015-03-03 18:06:16 UTC) #12
mtklein
On 2015/03/03 18:04:55, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 9 months ago (2015-03-03 18:06:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/971803002/40001
5 years, 9 months ago (2015-03-03 20:17:13 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-Shared-Trybot/builds/2396)
5 years, 9 months ago (2015-03-03 20:21:44 UTC) #18
Stephen Chennney
Mike, I think this needs re-review by now. Should I add a test? The only ...
5 years, 9 months ago (2015-03-03 21:34:26 UTC) #20
Stephen Chennney
On 2015/03/03 21:34:26, Stephen Chenney wrote: > Mike, I think this needs re-review by now. ...
5 years, 9 months ago (2015-03-03 21:35:41 UTC) #21
mtklein
On 2015/03/03 21:35:41, Stephen Chenney wrote: > On 2015/03/03 21:34:26, Stephen Chenney wrote: > > ...
5 years, 9 months ago (2015-03-03 21:46:03 UTC) #22
Stephen Chennney
On 2015/03/03 21:46:03, mtklein wrote: > On 2015/03/03 21:35:41, Stephen Chenney wrote: > > On ...
5 years, 9 months ago (2015-03-03 21:47:17 UTC) #23
mtklein
On 2015/03/03 21:47:17, Stephen Chenney wrote: > On 2015/03/03 21:46:03, mtklein wrote: > > On ...
5 years, 9 months ago (2015-03-03 21:50:28 UTC) #24
Stephen Chennney
On 2015/03/03 21:50:28, mtklein wrote: > On 2015/03/03 21:47:17, Stephen Chenney wrote: > > On ...
5 years, 9 months ago (2015-03-03 22:17:57 UTC) #25
mtklein
> I've got myself set up to build the tests now (turns out you can ...
5 years, 9 months ago (2015-03-03 22:53:14 UTC) #26
Stephen Chennney
At last. Turns out the SkRect::contains fails if either rect is empty, when I would ...
5 years, 9 months ago (2015-03-04 16:05:40 UTC) #27
Stephen Chennney
On 2015/03/04 16:05:40, Stephen Chenney wrote: > At last. Turns out the SkRect::contains fails if ...
5 years, 9 months ago (2015-03-04 16:26:51 UTC) #28
mtklein
On 2015/03/04 16:26:51, Stephen Chenney wrote: > On 2015/03/04 16:05:40, Stephen Chenney wrote: > > ...
5 years, 9 months ago (2015-03-04 16:34:46 UTC) #29
mtklein
On 2015/03/04 16:34:46, mtklein wrote: > On 2015/03/04 16:26:51, Stephen Chenney wrote: > > On ...
5 years, 9 months ago (2015-03-04 16:35:04 UTC) #30
mtklein
On 2015/03/04 16:35:04, mtklein wrote: > On 2015/03/04 16:34:46, mtklein wrote: > > On 2015/03/04 ...
5 years, 9 months ago (2015-03-04 16:35:30 UTC) #31
Stephen Chennney
Looks like this is ready but, Mike, I'd like you to approve again given I ...
5 years, 9 months ago (2015-03-05 15:01:40 UTC) #32
mtklein
lgtm
5 years, 9 months ago (2015-03-05 15:29:55 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/971803002/140001
5 years, 9 months ago (2015-03-05 15:40:39 UTC) #35
commit-bot: I haz the power
Committed patchset #6 (id:140001) as https://skia.googlesource.com/skia/+/2dd3b6647dc726f36fd8774b3d0d2e83b493aeac
5 years, 9 months ago (2015-03-05 15:43:13 UTC) #36
joshualitt
A revert of this CL (patchset #6 id:140001) has been created in https://codereview.chromium.org/977413003/ by joshualitt@google.com. ...
5 years, 9 months ago (2015-03-05 20:17:52 UTC) #37
mtklein
On 2015/03/05 20:17:52, joshualitt wrote: > A revert of this CL (patchset #6 id:140001) has ...
5 years, 9 months ago (2015-03-05 20:35:04 UTC) #38
Stephen Chennney
On 2015/03/05 20:35:04, mtklein wrote: > On 2015/03/05 20:17:52, joshualitt wrote: > > A revert ...
5 years, 9 months ago (2015-03-05 21:59:42 UTC) #39
mtklein
Seems like a good idea. Looks like the rest of the CL has gone missing? ...
5 years, 9 months ago (2015-03-06 18:18:50 UTC) #40
Stephen Chennney
On 2015/03/06 18:18:50, mtklein wrote: > Seems like a good idea. > > Looks like ...
5 years, 9 months ago (2015-03-06 20:42:41 UTC) #41
mtklein
lgtm https://codereview.chromium.org/971803002/diff/180001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/971803002/diff/180001/src/core/SkRecordDraw.cpp#newcode286 src/core/SkRecordDraw.cpp:286: fBounds[fCurrentOp] = this->popSaveBlock(); Might want to put this ...
5 years, 9 months ago (2015-03-06 20:54:25 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/971803002/200001
5 years, 9 months ago (2015-03-06 20:58:12 UTC) #45
commit-bot: I haz the power
Committed patchset #9 (id:200001) as https://skia.googlesource.com/skia/+/23d8593f8127411d9d687b4565b34b4ecd6b11d3
5 years, 9 months ago (2015-03-07 00:20:32 UTC) #46
reed2
Are we able to produce a bench that shows the performance gain/loss, so we can ...
5 years, 9 months ago (2015-03-07 14:07:04 UTC) #48
Stephen Chennney
On 2015/03/07 14:07:04, reed2 wrote: > Are we able to produce a bench that shows ...
5 years, 9 months ago (2015-03-09 13:22:35 UTC) #49
reed1
5 years, 9 months ago (2015-03-09 14:29:36 UTC) #51
Message was sent while issue was closed.
If this is an optimization, then I'm assuming we can measure something that gets
faster. I was just asking if we had such a measurement in-place in Skia, so we
can see it, and know if subsequent changes improve or reduce that.

Powered by Google App Engine
This is Rietveld 408576698