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

Issue 617393004: BBHs: void* data -> unsigned data (Closed)

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

Description

BBHs: void* data -> unsigned data Now that the old backend's not using BBHs, we can specialize them for SkRecord's needs. The only thing we really want to store is op index, which should always be small enough to fit into an unsigned (unsigned also helps keep it straight from other ints floating around). This means we'll need half (32-bit) or a quarter (64-bit) the bytes in SkTileGrid, because we don't have to store an extra int for ordering. BUG=skia:2834 Committed: https://skia.googlesource.com/skia/+/6bd41969a0f2283a7a7320bb0025551353c241ec

Patch Set 1 #

Patch Set 2 : bench #

Total comments: 20

Patch Set 3 : data -> opIndex #

Patch Set 4 : The rest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -361 lines) Patch
M bench/RTreeBench.cpp View 1 3 chunks +3 lines, -6 lines 0 comments Download
M gyp/tests.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/core/SkBBoxHierarchy.h View 1 2 3 chunks +7 lines, -37 lines 0 comments Download
M src/core/SkRTree.h View 1 2 5 chunks +5 lines, -7 lines 0 comments Download
M src/core/SkRTree.cpp View 1 2 5 chunks +5 lines, -13 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M src/core/SkTileGrid.h View 1 2 2 chunks +7 lines, -14 lines 0 comments Download
M src/core/SkTileGrid.cpp View 1 2 3 8 chunks +12 lines, -25 lines 0 comments Download
M src/gpu/GrRecordReplaceDraw.cpp View 5 chunks +11 lines, -11 lines 0 comments Download
M tests/BBoxHierarchyTest.cpp View 1 2 3 1 chunk +0 lines, -170 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 1 chunk +6 lines, -7 lines 0 comments Download
M tests/RTreeTest.cpp View 1 2 3 7 chunks +15 lines, -24 lines 0 comments Download
M tests/RecordDrawTest.cpp View 1 2 3 4 chunks +19 lines, -20 lines 0 comments Download
M tests/TileGridTest.cpp View 1 2 3 2 chunks +21 lines, -22 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/617393004/1
6 years, 2 months ago (2014-10-01 20:48:04 UTC) #2
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-01 20:48:05 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/617393004/20001
6 years, 2 months ago (2014-10-01 20:52:29 UTC) #5
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-01 20:52:32 UTC) #6
mtklein
6 years, 2 months ago (2014-10-01 20:58:28 UTC) #8
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
6 years, 2 months ago (2014-10-02 02:52:36 UTC) #10
robertphillips
lgtm + nits/questions https://codereview.chromium.org/617393004/diff/20001/src/core/SkTileGrid.cpp File src/core/SkTileGrid.cpp (right): https://codereview.chromium.org/617393004/diff/20001/src/core/SkTileGrid.cpp#newcode25 src/core/SkTileGrid.cpp:25: data -> opIndex everywhere ? https://codereview.chromium.org/617393004/diff/20001/src/core/SkTileGrid.cpp#newcode105 ...
6 years, 2 months ago (2014-10-02 12:27:35 UTC) #11
mtklein
https://codereview.chromium.org/617393004/diff/20001/src/core/SkTileGrid.cpp File src/core/SkTileGrid.cpp (right): https://codereview.chromium.org/617393004/diff/20001/src/core/SkTileGrid.cpp#newcode25 src/core/SkTileGrid.cpp:25: On 2014/10/02 12:27:35, robertphillips wrote: > data -> opIndex ...
6 years, 2 months ago (2014-10-02 14:32:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/617393004/60001
6 years, 2 months ago (2014-10-02 14:33:27 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-02 14:42:03 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 6bd41969a0f2283a7a7320bb0025551353c241ec

Powered by Google App Engine
This is Rietveld 408576698