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

Issue 885903002: Make the glyph array entries inline. (Closed)

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

Description

Make the glyph array entries inline. Perf Reports bin/c --match nytimes --config 8888 desk_nytimes.skp_1_mpd 1.41ms -> 1.38ms 0.98x desk_nytimes.skp_1 1.94ms -> 1.87ms 0.97x bin/c --match nytimes --config gpu desk_nytimes.skp_1_mpd 1.63ms -> 1.59ms 0.97x desk_nytimes.skp_1 1.56ms -> 1.5ms 0.97x Here are results from mac instruments: --match nytimes --config gpu --samples 10000 --skps /Users/herb/src/skia/skps Inline: Total Samples Running Time Self Symbol Name 94335 94335.0ms 98.3% 0.0 start 2365 2365.0ms 2.4% 2365.0 SkGlyphCache::getGlyphIDMetrics(unsigned short, int, int) 975 975.0ms 1.0% 975.0 SkGlyphCache::lookupMetrics(unsigned int, SkGlyphCache::MetricsType) Clean: Total Samples Running Time Self Symbol Name 96833 96833.0ms 97.3% 0.0 start 3418 3418.0ms 3.4% 3418.0 SkGlyphCache::getGlyphIDMetrics(unsigned short, int, int) 1961 1961.0ms 1.9% 1961.0 SkGlyphCache::lookupMetrics(unsigned int, SkGlyphCache::MetricsType) BUG=skia: Committed: https://skia.googlesource.com/skia/+/4c08f16b252a55e438a61f26e5581394ed177da1 Committed: https://skia.googlesource.com/skia/+/b4c29ac173e6f8844327338687248b98bc94132d Committed: https://skia.googlesource.com/skia/+/e70de9e4f0b7bf73f7cd1a20dbabcb233ffbb7f1

Patch Set 1 #

Patch Set 2 : Fix tracking problem. #

Patch Set 3 : Move to using indexes. #

Patch Set 4 : Add hash index adjustment #

Total comments: 2

Patch Set 5 : Change to sentinal for invalid #

Patch Set 6 : Debugged sentinal font cache #

Patch Set 7 : Fix spelling. #

Patch Set 8 : Add parens as suggested by build #

Total comments: 3

Patch Set 9 : Fix asserts for checking code in range #

Total comments: 1

Patch Set 10 : Fix change from uint16 to in. #

Patch Set 11 : Fix calling the wrong function for glyphs #

Patch Set 12 : new sync #

Patch Set 13 : Win 7 font scaler fixed #

Patch Set 14 : Move sentinal to ~0 as id #

Patch Set 15 : Rebase onto SkGlyph changes. #

Patch Set 16 : Fix comments remove old code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -137 lines) Patch
M src/core/SkGlyph.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +9 lines, -4 lines 0 comments Download
M src/core/SkGlyphCache.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +28 lines, -13 lines 0 comments Download
M src/core/SkGlyphCache.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +101 lines, -120 lines 0 comments Download

Messages

Total messages: 53 (12 generated)
herb_g
5 years, 10 months ago (2015-01-29 16:54:37 UTC) #2
herb_g
Using indexes, but not adjusting the caches during inserts. How does this approach look?
5 years, 10 months ago (2015-01-29 22:27:56 UTC) #3
herb_g
Added index adjustment. skdiff shows no diffs.
5 years, 10 months ago (2015-01-30 04:02:13 UTC) #4
reed1
slight confusion on names: - maintain makes some sense from the impl p.o.v., but not ...
5 years, 10 months ago (2015-01-30 13:57:38 UTC) #6
herb_g
Fixed names and added sentinels. https://codereview.chromium.org/885903002/diff/60001/src/core/SkGlyphCache.cpp File src/core/SkGlyphCache.cpp (right): https://codereview.chromium.org/885903002/diff/60001/src/core/SkGlyphCache.cpp#newcode70 src/core/SkGlyphCache.cpp:70: // init to 0 ...
5 years, 10 months ago (2015-02-01 05:09:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/885903002/120001
5 years, 10 months ago (2015-02-01 05:15:09 UTC) #9
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 10 months ago (2015-02-01 05:15:10 UTC) #10
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/1796) 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/1817)
5 years, 10 months ago (2015-02-01 05:16:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/885903002/130001
5 years, 10 months ago (2015-02-01 05:49:19 UTC) #14
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 10 months ago (2015-02-01 05:49:20 UTC) #15
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
5 years, 10 months ago (2015-02-01 11:49:31 UTC) #17
reed1
https://codereview.chromium.org/885903002/diff/130001/src/core/SkGlyph.h File src/core/SkGlyph.h (right): https://codereview.chromium.org/885903002/diff/130001/src/core/SkGlyph.h#newcode132 src/core/SkGlyph.h:132: static uint32_t MakeID(unsigned code) { can we add? SkASSERT(0 ...
5 years, 10 months ago (2015-02-02 11:49:37 UTC) #18
herb_g
https://codereview.chromium.org/885903002/diff/130001/src/core/SkGlyph.h File src/core/SkGlyph.h (right): https://codereview.chromium.org/885903002/diff/130001/src/core/SkGlyph.h#newcode132 src/core/SkGlyph.h:132: static uint32_t MakeID(unsigned code) { On 2015/02/02 11:49:36, reed1 ...
5 years, 10 months ago (2015-02-02 13:39:03 UTC) #19
herb_g
PTAL https://codereview.chromium.org/885903002/diff/130001/src/core/SkGlyph.h File src/core/SkGlyph.h (right): https://codereview.chromium.org/885903002/diff/130001/src/core/SkGlyph.h#newcode132 src/core/SkGlyph.h:132: static uint32_t MakeID(unsigned code) { On 2015/02/02 11:49:36, ...
5 years, 10 months ago (2015-02-02 15:34:11 UTC) #20
reed1
lgtm w/ nits https://codereview.chromium.org/885903002/diff/150001/src/core/SkGlyphCache.h File src/core/SkGlyphCache.h (right): https://codereview.chromium.org/885903002/diff/150001/src/core/SkGlyphCache.h#newcode231 src/core/SkGlyphCache.h:231: void adjustCaches(int16_t insertion_index); nit: skia usually ...
5 years, 10 months ago (2015-02-02 19:23:39 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/885903002/170001
5 years, 10 months ago (2015-02-03 01:28:17 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:170001) as https://skia.googlesource.com/skia/+/4c08f16b252a55e438a61f26e5581394ed177da1
5 years, 10 months ago (2015-02-03 01:47:35 UTC) #24
bsalomon
A revert of this CL (patchset #10 id:170001) has been created in https://codereview.chromium.org/897463004/ by bsalomon@google.com. ...
5 years, 10 months ago (2015-02-03 05:05:26 UTC) #25
herb_g
I have found the bug causing the regression. Do I need to start a new ...
5 years, 10 months ago (2015-02-07 01:58:48 UTC) #26
mtklein
On 2015/02/07 01:58:48, herb1 wrote: > I have found the bug causing the regression. Do ...
5 years, 10 months ago (2015-02-09 13:43:58 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/885903002/190001
5 years, 10 months ago (2015-02-09 14:35:14 UTC) #29
commit-bot: I haz the power
Committed patchset #11 (id:190001) as https://skia.googlesource.com/skia/+/b4c29ac173e6f8844327338687248b98bc94132d
5 years, 10 months ago (2015-02-09 14:38:33 UTC) #30
mtklein
On 2015/02/09 14:38:33, I haz the power (commit-bot) wrote: > Committed patchset #11 (id:190001) as ...
5 years, 10 months ago (2015-02-09 15:39:13 UTC) #31
mtklein
On 2015/02/09 15:39:13, mtklein wrote: > On 2015/02/09 14:38:33, I haz the power (commit-bot) wrote: ...
5 years, 10 months ago (2015-02-09 15:51:31 UTC) #32
mtklein
A revert of this CL (patchset #11 id:190001) has been created in https://codereview.chromium.org/911513003/ by mtklein@google.com. ...
5 years, 10 months ago (2015-02-09 15:51:52 UTC) #33
jvanverth1
A revert of this CL (patchset #11 id:190001) has been created in https://codereview.chromium.org/910803002/ by jvanverth@google.com. ...
5 years, 10 months ago (2015-02-09 15:54:04 UTC) #34
herb_g
PTAL Running bin/c has some variation. The ones digit can be +/- 2, so maybe ...
5 years, 10 months ago (2015-02-13 20:44:20 UTC) #35
mtklein
On 2015/02/13 20:44:20, herb1 wrote: > PTAL > > Running bin/c has some variation. The ...
5 years, 10 months ago (2015-02-13 22:18:09 UTC) #36
mtklein
> We should probably make fID in SkGlyph private after this CL. Can we make ...
5 years, 10 months ago (2015-02-13 22:21:24 UTC) #37
mtklein
Yeah, that matches my latest intuitions around this a lot better.
5 years, 10 months ago (2015-02-13 22:59:24 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/885903002/290001
5 years, 10 months ago (2015-02-26 16:21:01 UTC) #41
commit-bot: I haz the power
This issue passed the CQ. To commit it, remove "COMMIT=false" from the description and try ...
5 years, 10 months ago (2015-02-26 16:26:31 UTC) #42
herb_g
The performance numbers are the same as reported before. PTAL
5 years, 10 months ago (2015-02-27 01:33:30 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/885903002/290001
5 years, 9 months ago (2015-02-27 14:29:01 UTC) #45
commit-bot: I haz the power
This issue passed the CQ. To commit it, remove "COMMIT=false" from the description and try ...
5 years, 9 months ago (2015-02-27 14:37:32 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/885903002/290001
5 years, 9 months ago (2015-02-27 15:22:43 UTC) #48
commit-bot: I haz the power
Committed patchset #16 (id:290001) as https://skia.googlesource.com/skia/+/e70de9e4f0b7bf73f7cd1a20dbabcb233ffbb7f1
5 years, 9 months ago (2015-02-27 15:22:54 UTC) #49
reed1
possible perf regression associated with this change... https://perf.skia.org/#2875 any chance this CL is responsible?
5 years, 9 months ago (2015-02-27 19:27:39 UTC) #50
mtklein
On 2015/02/27 19:27:39, reed1 wrote: > possible perf regression associated with this change... > > ...
5 years, 9 months ago (2015-02-27 19:34:33 UTC) #51
reed1
adding author of chunkalloc change
5 years, 9 months ago (2015-02-27 19:39:29 UTC) #52
mtklein
5 years, 9 months ago (2015-02-27 19:43:10 UTC) #53
Message was sent while issue was closed.
On 2015/02/27 19:39:29, reed1 wrote:
> adding author of chunkalloc change

Looking harder, these are almost all Nexus 5 lines.  This might just be an alert
telling us the Nexus 5 was underclocked for heat this run.  Let's keep an eye on
at as we get more runs in... might not have anything to do with any of those
CLs.

Powered by Google App Engine
This is Rietveld 408576698