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

Issue 670213002: Cut down SkBBH API more. (Closed)

Created:
6 years, 2 months ago by mtklein_C
Modified:
6 years, 1 month ago
Reviewers:
mtklein, robertphillips
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Cut down SkBBH API more. - The expected case is now a single bulk-load insert() call instead of N; - reserve() and flushDeferredInserts() can fold into insert() now; - SkBBH subclasses may take ownership of the bounds This appears to be a performance no-op on both my Mac and N5. I guess even the simplest indirect branch predictor ("same as last time") can predict the repeated virtual calls to SkBBH::insert() perfectly. BUG=skia: Committed: https://skia.googlesource.com/skia/+/4477c3c0e6eb064772aefe8737425cd1c2ce557f

Patch Set 1 #

Patch Set 2 : cast #

Patch Set 3 : optional ownership #

Patch Set 4 : update rtree bench #

Patch Set 5 : update rtree bench #

Patch Set 6 : update tilegrid test #

Total comments: 9

Patch Set 7 : cut out more #

Patch Set 8 : virtual #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -330 lines) Patch
M bench/RTreeBench.cpp View 1 2 3 8 chunks +58 lines, -145 lines 0 comments Download
M src/core/SkBBoxHierarchy.h View 1 2 2 chunks +10 lines, -25 lines 0 comments Download
M src/core/SkRTree.h View 1 2 3 4 5 6 7 2 chunks +1 line, -19 lines 0 comments Download
M src/core/SkRTree.cpp View 1 2 3 4 5 6 3 chunks +23 lines, -54 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 1 chunk +1 line, -7 lines 0 comments Download
M src/core/SkTileGrid.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -16 lines 0 comments Download
M src/core/SkTileGrid.cpp View 1 2 3 chunks +27 lines, -22 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M tests/RTreeTest.cpp View 1 2 3 4 3 chunks +8 lines, -35 lines 0 comments Download
M tests/RecordDrawTest.cpp View 1 2 3 4 5 6 7 1 chunk +6 lines, -3 lines 0 comments Download
M tests/RecordReplaceDrawTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/TileGridTest.cpp View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 39 (12 generated)
mtklein
6 years, 2 months ago (2014-10-22 20:04:38 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/670213002/1
6 years, 2 months ago (2014-10-22 20:05:34 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 2 months ago (2014-10-22 20:05:35 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot on client.skia.compile (http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot/builds/160) Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot on client.skia.compile (http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot/builds/171)
6 years, 2 months ago (2014-10-22 20:11:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/670213002/20001
6 years, 2 months ago (2014-10-23 15:21:54 UTC) #9
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 2 months ago (2014-10-23 15:21:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/670213002/40001
6 years, 1 month ago (2014-10-23 16:38:45 UTC) #12
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-10-23 16:38:46 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/670213002/60001
6 years, 1 month ago (2014-10-23 19:28:26 UTC) #15
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-10-23 19:28:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/670213002/80001
6 years, 1 month ago (2014-10-23 19:35:15 UTC) #18
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-10-23 19:35:16 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/670213002/100001
6 years, 1 month ago (2014-10-23 19:55:42 UTC) #21
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-10-23 19:55:43 UTC) #22
mtklein
OK, should be ready for review / to land.
6 years, 1 month ago (2014-10-23 20:04:19 UTC) #23
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
6 years, 1 month ago (2014-10-24 01:55:52 UTC) #25
robertphillips
https://codereview.chromium.org/670213002/diff/100001/src/core/SkRTree.cpp File src/core/SkRTree.cpp (right): https://codereview.chromium.org/670213002/diff/100001/src/core/SkRTree.cpp#newcode72 src/core/SkRTree.cpp:72: In this case the tree isn't empty. So I ...
6 years, 1 month ago (2014-10-24 18:52:45 UTC) #26
mtklein
https://codereview.chromium.org/670213002/diff/100001/src/core/SkRTree.cpp File src/core/SkRTree.cpp (right): https://codereview.chromium.org/670213002/diff/100001/src/core/SkRTree.cpp#newcode72 src/core/SkRTree.cpp:72: On 2014/10/24 18:52:45, robertphillips wrote: > In this case ...
6 years, 1 month ago (2014-10-24 19:05:49 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/670213002/120001
6 years, 1 month ago (2014-10-24 19:07:28 UTC) #29
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-10-24 19:07:29 UTC) #30
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
6 years, 1 month ago (2014-10-25 01:07:37 UTC) #32
robertphillips
https://codereview.chromium.org/670213002/diff/100001/tests/PictureTest.cpp File tests/PictureTest.cpp (right): https://codereview.chromium.org/670213002/diff/100001/tests/PictureTest.cpp#newcode1867 tests/PictureTest.cpp:1867: I propose trying this in a different patch with ...
6 years, 1 month ago (2014-10-27 15:23:30 UTC) #33
mtklein
https://codereview.chromium.org/670213002/diff/100001/tests/PictureTest.cpp File tests/PictureTest.cpp (right): https://codereview.chromium.org/670213002/diff/100001/tests/PictureTest.cpp#newcode1867 tests/PictureTest.cpp:1867: On 2014/10/27 15:23:30, robertphillips wrote: > I propose trying ...
6 years, 1 month ago (2014-10-27 15:36:45 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/670213002/140001
6 years, 1 month ago (2014-10-27 15:37:48 UTC) #36
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-10-27 15:37:50 UTC) #37
robertphillips
lgtm
6 years, 1 month ago (2014-10-27 16:16:47 UTC) #38
commit-bot: I haz the power
6 years, 1 month ago (2014-10-27 17:27:20 UTC) #39
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as 4477c3c0e6eb064772aefe8737425cd1c2ce557f

Powered by Google App Engine
This is Rietveld 408576698