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

Issue 1757703003: Extend FontCache fallback API to support FontFallbackPriority (Closed)

Created:
4 years, 9 months ago by drott
Modified:
4 years, 9 months ago
CC:
blink-reviews, blink-reviews-platform-graphics_chromium.org, blink-reviews-wtf_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, kinuko+watch, Mikhail, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, vmpstr+blinkwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extend FontCache fallback API to support FontFallbackPriority This is take two and now compatible with Android. Instead of retrieving a list of font family candidates I am now extending the existing character fallback API with the FontFallbackPriority argument. Depending on the platform, this gives us better search options for finding the fallback font. On Android specifically, we can search for the character plus a specific locale for retrieving the color emoji font without an explicit family name. In Windows, we can better integrate with the existing fallback logic. Unfortunately, this is change is hard to test on the bots as an Emoji font is not available on all Linux bots and blink_platform_unittests do currently not execute on Android. But the change was manually verified on Mac, Windows, Linux and Android. BUG=580536 Committed: https://crrev.com/18cda1ab960d4638738da618186b48a7598b4de0 Cr-Commit-Position: refs/heads/master@{#378826}

Patch Set 1 #

Total comments: 3

Patch Set 2 : review comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -18 lines) Patch
M third_party/WebKit/Source/platform/fonts/FontCache.h View 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp View 1 5 chunks +18 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/linux/FontCacheLinux.cpp View 1 chunk +16 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm View 1 2 chunks +14 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp View 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.cpp View 1 3 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/CharacterNames.h View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
drott
4 years, 9 months ago (2016-03-02 15:16:59 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1757703003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1757703003/1
4 years, 9 months ago (2016-03-02 15:17:20 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-02 16:31:59 UTC) #6
eae
LGTM w/suggestions https://codereview.chromium.org/1757703003/diff/1/third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp File third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp (right): https://codereview.chromium.org/1757703003/diff/1/third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp#newcode44 third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp:44: static const char* kAndroidColorEmojiLocale = "und-Zsye"; Zsye? ...
4 years, 9 months ago (2016-03-02 18:26:54 UTC) #7
drott
review comments addressed
4 years, 9 months ago (2016-03-02 19:31:02 UTC) #8
drott
Thanks for the quick review, I incorporated those suggestions.
4 years, 9 months ago (2016-03-02 19:31:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1757703003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1757703003/20001
4 years, 9 months ago (2016-03-02 19:32:43 UTC) #12
f(malita)
lgtm
4 years, 9 months ago (2016-03-02 20:10:00 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-02 20:56:10 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 20:57:21 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/18cda1ab960d4638738da618186b48a7598b4de0
Cr-Commit-Position: refs/heads/master@{#378826}

Powered by Google App Engine
This is Rietveld 408576698