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

Issue 1163283002: update portable fonts (Closed)

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

Description

Today's gm include many differences caused by platform font implementations. This experiment replaces the label used in the aaxfermodes gm with aliased text generated from paths common to all platforms. Since there is no way today to generate all dm output from trybots, this will be checked in to confirm that this strategy provides simpler output across devices. This does not introduce a new public interface; instead, dm uses a extern backdoor to install the SkTypeface::CreateFromName handler. Committed: https://skia.googlesource.com/skia/+/83ca628cb6c959524edc3a696d7c3b5f7f1826ba

Patch Set 1 #

Patch Set 2 : update portable fonts #

Patch Set 3 : update portable fonts #

Patch Set 4 : remove change to old font #

Patch Set 5 : update to new fonts #

Patch Set 6 : remove unneeded code #

Patch Set 7 : change interface rather than writing to global #

Patch Set 8 : remove unneeded include #

Patch Set 9 : add serialize experiment #

Patch Set 10 : check for null family name #

Patch Set 11 : update font creation code #

Total comments: 12

Patch Set 12 : revise to include review comments #

Total comments: 2

Patch Set 13 : fix indent #

Total comments: 6

Patch Set 14 : remove duplicate code #

Patch Set 15 : rewrite aaxfermodes.cpp to reduce test area #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15146 lines, -136 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +17 lines, -0 lines 0 comments Download
M gm/aaxfermodes.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +64 lines, -28 lines 0 comments Download
M src/core/SkTypeface.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -0 lines 0 comments Download
M src/fonts/SkTestScalerContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +0 lines, -2 lines 0 comments Download
M tools/create_test_font.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +86 lines, -101 lines 0 comments Download
M tools/flags/SkCommandLineFlags.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -2 lines 0 comments Download
M tools/sk_tool_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -1 line 0 comments Download
M tools/sk_tool_utils.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +9 lines, -0 lines 0 comments Download
M tools/sk_tool_utils_font.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +11 lines, -2 lines 0 comments Download
A tools/test_font_index.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +99 lines, -0 lines 0 comments Download
A tools/test_font_monospace.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4839 lines, -0 lines 0 comments Download
A tools/test_font_sans_serif.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4854 lines, -0 lines 0 comments Download
A tools/test_font_serif.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5150 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (16 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163283002/50001
5 years, 6 months ago (2015-06-08 18:33:26 UTC) #3
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 6 months ago (2015-06-08 18:33:29 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163283002/70001
5 years, 6 months ago (2015-06-08 19:15:17 UTC) #6
caryclark
please take a look
5 years, 6 months ago (2015-06-08 20:07:28 UTC) #7
bungeman-skia
Will this work with the serialized gms? It seems like the default font would be ...
5 years, 6 months ago (2015-06-08 20:28:35 UTC) #9
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
5 years, 6 months ago (2015-06-09 00:33:06 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163283002/80001
5 years, 6 months ago (2015-06-09 13:11:41 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/1254)
5 years, 6 months ago (2015-06-09 13:13:21 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163283002/90001
5 years, 6 months ago (2015-06-09 13:31:01 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-09 13:36:29 UTC) #19
caryclark
The latest serializes correctly from DM. Feel free to suggest a more agreeable way of ...
5 years, 6 months ago (2015-06-09 14:24:59 UTC) #20
mtklein
I like this. https://codereview.chromium.org/1163283002/diff/100001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1163283002/diff/100001/dm/DM.cpp#newcode714 dm/DM.cpp:714: static SkTypeface* CreateFromName(const char familyName[], SkTypeface::Style ...
5 years, 6 months ago (2015-06-09 14:39:49 UTC) #21
bungeman-skia
https://codereview.chromium.org/1163283002/diff/100001/include/core/SkTypeface.h File include/core/SkTypeface.h (right): https://codereview.chromium.org/1163283002/diff/100001/include/core/SkTypeface.h#newcode419 include/core/SkTypeface.h:419: static SkTypeface* (*fCreateDelegate)(const char name[], SkTypeface::Style style); We often ...
5 years, 6 months ago (2015-06-09 14:47:51 UTC) #22
caryclark
https://codereview.chromium.org/1163283002/diff/100001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1163283002/diff/100001/dm/DM.cpp#newcode714 dm/DM.cpp:714: static SkTypeface* CreateFromName(const char familyName[], SkTypeface::Style style) { On ...
5 years, 6 months ago (2015-06-09 16:37:21 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163283002/110001
5 years, 6 months ago (2015-06-09 16:38:09 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-09 16:45:26 UTC) #27
bungeman-skia
The code change itself lgtm.
5 years, 6 months ago (2015-06-09 16:46:11 UTC) #28
mtklein
lgtm too https://codereview.chromium.org/1163283002/diff/110001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1163283002/diff/110001/dm/DM.cpp#newcode717 dm/DM.cpp:717: return sk_tool_utils::create_portable_typeface_always(familyName, style); Whacky indent here?
5 years, 6 months ago (2015-06-09 17:04:15 UTC) #29
caryclark
https://codereview.chromium.org/1163283002/diff/110001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1163283002/diff/110001/dm/DM.cpp#newcode717 dm/DM.cpp:717: return sk_tool_utils::create_portable_typeface_always(familyName, style); On 2015/06/09 17:04:15, mtklein wrote: > ...
5 years, 6 months ago (2015-06-09 17:10:42 UTC) #30
caryclark
Mike, since this change has evolved to edit include/SkTypeface.h, you'll need to lgtm -- or ...
5 years, 6 months ago (2015-06-09 20:13:12 UTC) #31
reed1
https://codereview.chromium.org/1163283002/diff/120001/include/core/SkTypeface.h File include/core/SkTypeface.h (right): https://codereview.chromium.org/1163283002/diff/120001/include/core/SkTypeface.h#newcode326 include/core/SkTypeface.h:326: static void SetGlobalCreateFromNameDelegate(CreateFromNameDelegateProc delegate) { add even 1-liner dox? ...
5 years, 6 months ago (2015-06-09 20:17:26 UTC) #32
caryclark
https://codereview.chromium.org/1163283002/diff/120001/include/core/SkTypeface.h File include/core/SkTypeface.h (right): https://codereview.chromium.org/1163283002/diff/120001/include/core/SkTypeface.h#newcode326 include/core/SkTypeface.h:326: static void SetGlobalCreateFromNameDelegate(CreateFromNameDelegateProc delegate) { On 2015/06/09 20:17:26, reed1 ...
5 years, 6 months ago (2015-06-10 11:50:21 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163283002/130001
5 years, 6 months ago (2015-06-10 11:50:53 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-10 11:56:15 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163283002/140001
5 years, 6 months ago (2015-06-10 16:25:28 UTC) #41
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 16:31:13 UTC) #42
Message was sent while issue was closed.
Committed patchset #15 (id:140001) as
https://skia.googlesource.com/skia/+/83ca628cb6c959524edc3a696d7c3b5f7f1826ba

Powered by Google App Engine
This is Rietveld 408576698