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

Issue 1879423002: Remove requestedStyle from SkTypefaceCache. (Closed)

Created:
4 years, 8 months ago by bungeman-skia
Modified:
4 years, 8 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

Remove requestedStyle from SkTypefaceCache. The typeface cache contains typefaces which can be compared against to determine if an already known typeface will work instead of creating a new typeface id. This is primarily for sharing scaler contexts. How that typeface was requested is not relevant to this comparison, so don't cache it. Request caching must be handled separately. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1879423002 Committed: https://skia.googlesource.com/skia/+/82a455f0e9a7a50a399a58be906b48c24aeec056

Patch Set 1 #

Patch Set 2 : Fix ref. #

Patch Set 3 : Fix the unref and Dump. #

Patch Set 4 : Add a simple test. #

Patch Set 5 : More interesting coverage. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -67 lines) Patch
M src/core/SkTypefaceCache.h View 4 chunks +6 lines, -17 lines 0 comments Download
M src/core/SkTypefaceCache.cpp View 1 2 4 chunks +20 lines, -35 lines 0 comments Download
M src/ports/SkFontHost_fontconfig.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/ports/SkFontHost_mac.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M src/ports/SkFontHost_win.cpp View 2 chunks +3 lines, -5 lines 0 comments Download
M src/ports/SkFontMgr_fontconfig.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/ports/SkFontMgr_win_dw.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/TypefaceTest.cpp View 1 2 3 4 2 chunks +67 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (16 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/1879423002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879423002/1
4 years, 8 months ago (2016-04-13 15:14:58 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/7805)
4 years, 8 months ago (2016-04-13 15:16:29 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1879423002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879423002/20001
4 years, 8 months ago (2016-04-13 15:27:48 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1879423002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879423002/40001
4 years, 8 months ago (2016-04-13 16:57:11 UTC) #10
bungeman-skia
4 years, 8 months ago (2016-04-13 17:04:02 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-13 17:06:16 UTC) #16
mtklein
how are we testing this?
4 years, 8 months ago (2016-04-13 19:14:34 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1879423002/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879423002/50001
4 years, 8 months ago (2016-04-13 20:30:34 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1879423002/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879423002/70001
4 years, 8 months ago (2016-04-13 20:35:06 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-13 20:45:19 UTC) #23
bungeman-skia
It isn't the most inspiring test ever, but it does hit up most of the ...
4 years, 8 months ago (2016-04-13 20:49:06 UTC) #24
bungeman-skia
4 years, 8 months ago (2016-04-14 14:51:22 UTC) #26
reed1
lgtm
4 years, 8 months ago (2016-04-14 15:01:20 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1879423002/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879423002/70001
4 years, 8 months ago (2016-04-14 15:03:51 UTC) #29
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 15:04:51 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:70001) as
https://skia.googlesource.com/skia/+/82a455f0e9a7a50a399a58be906b48c24aeec056

Powered by Google App Engine
This is Rietveld 408576698