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

Issue 1216983003: Move the GlyphCache to use a hash table instead of doing its own ad-hoc (Closed)

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

Description

Change the GlyphCache to use a hash table instead of doing its own ad-hoc hashing. This change appears to be performance neutral. BUG=skia: Committed: https://skia.googlesource.com/skia/+/c71239b9ff7d8c19dc03cb6c9081e7dc4e0947d2

Patch Set 1 #

Total comments: 10

Patch Set 2 : updates for comments #

Patch Set 3 : Fix one last type #

Total comments: 2

Patch Set 4 : Use SkTHashTable in SkGlyphCache #

Patch Set 5 : address reeds comments #

Total comments: 9

Patch Set 6 : Address mtklein's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -217 lines) Patch
M src/core/SkGlyph.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M src/core/SkGlyphCache.h View 1 2 3 4 5 4 chunks +24 lines, -39 lines 0 comments Download
M src/core/SkGlyphCache.cpp View 1 2 3 4 5 8 chunks +49 lines, -178 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1216983003/1
5 years, 5 months ago (2015-06-29 19:23:37 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-06-29 19:40:25 UTC) #5
herb_g
5 years, 5 months ago (2015-06-29 20:56:38 UTC) #6
reed1
clean looking? slightly surprised that we're pref neutral. Do we have useful micro benches here? ...
5 years, 5 months ago (2015-06-29 20:59:48 UTC) #8
reed1
sorry, "clean looking" was an affirmative, not a question.
5 years, 5 months ago (2015-06-29 21:00:09 UTC) #9
mtklein
https://codereview.chromium.org/1216983003/diff/1/src/core/SkGlyphCache.h File src/core/SkGlyphCache.h (right): https://codereview.chromium.org/1216983003/diff/1/src/core/SkGlyphCache.h#newcode24 src/core/SkGlyphCache.h:24: class GlyphTrait { Might want to call this SkGlyphHashTraits, ...
5 years, 5 months ago (2015-06-30 16:20:47 UTC) #10
mtklein
def tdarray_alloc(n): count = 0 alloc = 0 for i in range(n): count += 1 ...
5 years, 5 months ago (2015-06-30 16:50:06 UTC) #11
herb_g
I tried making a separate opaque type for the combined glyphID and Position using enum ...
5 years, 5 months ago (2015-07-06 16:32:20 UTC) #12
reed1
Slightly hard to follow the CL, as we it doing a bit more than just ...
5 years, 5 months ago (2015-07-06 17:29:35 UTC) #13
herb_g
Added typedefs, and addressed other comments. There is a two pixel difference in the dm: ...
5 years, 5 months ago (2015-07-20 22:21:44 UTC) #14
mtklein
> There is a two pixel difference in the dm: > gpu/gm/dstreadshuffle > > Is ...
5 years, 5 months ago (2015-07-20 22:23:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1216983003/80001
5 years, 5 months ago (2015-07-20 23:23:08 UTC) #17
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 5 months ago (2015-07-20 23:23:09 UTC) #18
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
5 years, 5 months ago (2015-07-21 05:23:07 UTC) #20
mtklein
lgtm https://codereview.chromium.org/1216983003/diff/80001/src/core/SkGlyph.h File src/core/SkGlyph.h (right): https://codereview.chromium.org/1216983003/diff/80001/src/core/SkGlyph.h#newcode118 src/core/SkGlyph.h:118: class GlyphHashTraits { Seems fine, but now that ...
5 years, 5 months ago (2015-07-21 19:35:53 UTC) #21
herb_g
https://codereview.chromium.org/1216983003/diff/80001/src/core/SkGlyph.h File src/core/SkGlyph.h (right): https://codereview.chromium.org/1216983003/diff/80001/src/core/SkGlyph.h#newcode118 src/core/SkGlyph.h:118: class GlyphHashTraits { On 2015/07/21 19:35:52, mtklein wrote: > ...
5 years, 5 months ago (2015-07-21 22:27:34 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1216983003/100001
5 years, 5 months ago (2015-07-21 22:29:17 UTC) #25
mtklein
https://codereview.chromium.org/1216983003/diff/80001/src/core/SkGlyph.h File src/core/SkGlyph.h (right): https://codereview.chromium.org/1216983003/diff/80001/src/core/SkGlyph.h#newcode124 src/core/SkGlyph.h:124: return SkChecksum::CheapMix(glyphId); On 2015/07/21 22:27:34, herb_g wrote: > On ...
5 years, 5 months ago (2015-07-21 22:30:30 UTC) #26
commit-bot: I haz the power
5 years, 5 months ago (2015-07-21 22:36:29 UTC) #27
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/c71239b9ff7d8c19dc03cb6c9081e7dc4e0947d2

Powered by Google App Engine
This is Rietveld 408576698