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

Issue 390103002: Replace use of GrTHashTable in GrFontCache with SkTDynamicHash. (Closed)

Created:
6 years, 5 months ago by jvanverth1
Modified:
6 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Replace use of GrTHashTable in GrFontCache with SkTDynamicHash. Searching the font cache for existing text strikes was showing up as a hotspot on Android. This change reduces that cost. Committed: https://skia.googlesource.com/skia/+/dd6d22751a1ec858daaf78c3929c22737483e3db

Patch Set 1 #

Patch Set 2 : Change font descriptor to use Murmur3 for hash/checksum. #

Patch Set 3 : Put GrGlyph in SkTDynamicHas #

Patch Set 4 : Clean up for review #

Patch Set 5 : Whitespace clean up #

Patch Set 6 : Add deleteAll() and freeAll() to SkTDynamicHash. #

Total comments: 2

Patch Set 7 : Remove deleteAll(); use iterator instead. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -77 lines) Patch
M include/gpu/GrGlyph.h View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M src/core/SkDescriptor.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrTextStrike.h View 1 2 3 5 chunks +13 lines, -14 lines 0 comments Download
M src/gpu/GrTextStrike.cpp View 1 2 3 4 5 6 8 chunks +26 lines, -18 lines 0 comments Download
M src/gpu/GrTextStrike_impl.h View 1 2 3 4 3 chunks +2 lines, -43 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jvanverth1
(Except it's measurably slower in Chrome, so clearly either SkTDynamicHash has a problem, or I'm ...
6 years, 5 months ago (2014-07-17 14:57:12 UTC) #1
jvanverth1
Updated to include the hashtable of GrGlyphs in GrTextStrike, and use Murmur3 as the hash ...
6 years, 5 months ago (2014-07-21 14:50:14 UTC) #2
bsalomon
lgtm. Too bad there isn't a speedup, but at least it is a step towards ...
6 years, 5 months ago (2014-07-21 14:55:01 UTC) #3
jvanverth1
On 2014/07/21 14:50:14, jvanverth1 wrote: > Updated to include the hashtable of GrGlyphs in GrTextStrike, ...
6 years, 5 months ago (2014-07-21 14:56:04 UTC) #4
jvanverth1
Adding Mike to make sure the addition of deleteAll() and freeAll() is good (needed to ...
6 years, 5 months ago (2014-07-22 13:14:04 UTC) #5
mtklein
https://codereview.chromium.org/390103002/diff/100001/src/core/SkTDynamicHash.h File src/core/SkTDynamicHash.h (right): https://codereview.chromium.org/390103002/diff/100001/src/core/SkTDynamicHash.h#newcode138 src/core/SkTDynamicHash.h:138: void deleteAll() { I think you can do both ...
6 years, 5 months ago (2014-07-22 13:54:30 UTC) #6
jvanverth1
https://codereview.chromium.org/390103002/diff/100001/src/core/SkTDynamicHash.h File src/core/SkTDynamicHash.h (right): https://codereview.chromium.org/390103002/diff/100001/src/core/SkTDynamicHash.h#newcode138 src/core/SkTDynamicHash.h:138: void deleteAll() { Yup, just had that discussion here. ...
6 years, 5 months ago (2014-07-22 14:14:08 UTC) #7
mtklein
On 2014/07/22 14:14:08, jvanverth1 wrote: > https://codereview.chromium.org/390103002/diff/100001/src/core/SkTDynamicHash.h > File src/core/SkTDynamicHash.h (right): > > https://codereview.chromium.org/390103002/diff/100001/src/core/SkTDynamicHash.h#newcode138 > ...
6 years, 5 months ago (2014-07-22 14:16:35 UTC) #8
jvanverth1
The CQ bit was checked by jvanverth@google.com
6 years, 5 months ago (2014-07-22 20:07:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jvanverth@google.com/390103002/120001
6 years, 5 months ago (2014-07-22 20:08:24 UTC) #10
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 20:25:30 UTC) #11
Message was sent while issue was closed.
Change committed as dd6d22751a1ec858daaf78c3929c22737483e3db

Powered by Google App Engine
This is Rietveld 408576698