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

Issue 439813002: Test and generalize font configuration parser (Closed)

Created:
6 years, 4 months ago by Tom Hudson
Modified:
6 years, 4 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Test and generalize font configuration parser Add a basic unit test for the Android font configuration parser. Add a check for the new LMP file format; on detection, switch to a new (as-yet unwritten) parser. R=djsollen@google.com,bungeman@google.com Committed: https://skia.googlesource.com/skia/+/f79673bbae0a662c1428755e2719dadf944e4ba1

Patch Set 1 #

Patch Set 2 : Safety tweak to attribute comparisons #

Total comments: 22

Patch Set 3 : Respond to reviews #

Total comments: 1

Patch Set 4 : Fix nit and install Android fonts.xml update #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+905 lines, -40 lines) Patch
M gyp/tests.gypi View 1 chunk +11 lines, -0 lines 0 comments Download
A resources/android_fonts/pre_v17/fallback_fonts.xml View 1 chunk +77 lines, -0 lines 0 comments Download
A resources/android_fonts/pre_v17/system_fonts.xml View 1 chunk +80 lines, -0 lines 0 comments Download
A resources/android_fonts/v17/fallback_fonts.xml View 1 chunk +213 lines, -0 lines 0 comments Download
A resources/android_fonts/v17/system_fonts.xml View 1 chunk +138 lines, -0 lines 0 comments Download
A resources/android_fonts/v22/fonts.xml View 1 2 3 1 chunk +232 lines, -0 lines 0 comments Download
M src/ports/SkFontConfigParser_android.cpp View 1 2 3 11 chunks +85 lines, -40 lines 0 comments Download
A tests/FontConfigParser.cpp View 1 2 1 chunk +69 lines, -0 lines 1 comment Download

Messages

Total messages: 10 (0 generated)
tomhudson
PTAL; I'd like to consider landing this while I fill in the rest of the ...
6 years, 4 months ago (2014-08-04 17:33:48 UTC) #1
bungeman-skia
https://codereview.chromium.org/439813002/diff/20001/src/ports/SkFontConfigParser_android.cpp File src/ports/SkFontConfigParser_android.cpp (right): https://codereview.chromium.org/439813002/diff/20001/src/ports/SkFontConfigParser_android.cpp#newcode110 src/ports/SkFontConfigParser_android.cpp:110: case FILESET_TAG: { nit: The extra braces seem extraneous, ...
6 years, 4 months ago (2014-08-04 18:02:13 UTC) #2
djsollen
https://codereview.chromium.org/439813002/diff/20001/src/ports/SkFontConfigParser_android.cpp File src/ports/SkFontConfigParser_android.cpp (right): https://codereview.chromium.org/439813002/diff/20001/src/ports/SkFontConfigParser_android.cpp#newcode78 src/ports/SkFontConfigParser_android.cpp:78: namespace lmpParser { On 2014/08/04 17:33:48, tomhudson wrote: > ...
6 years, 4 months ago (2014-08-04 18:13:36 UTC) #3
tomhudson
https://codereview.chromium.org/439813002/diff/20001/src/ports/SkFontConfigParser_android.cpp File src/ports/SkFontConfigParser_android.cpp (right): https://codereview.chromium.org/439813002/diff/20001/src/ports/SkFontConfigParser_android.cpp#newcode166 src/ports/SkFontConfigParser_android.cpp:166: if (len == 9 && strncmp(tag, "familyset", len) == ...
6 years, 4 months ago (2014-08-04 18:14:50 UTC) #4
tomhudson
Still needs to be updated with revised fonts.xml from Android. https://codereview.chromium.org/439813002/diff/20001/src/ports/SkFontConfigParser_android.cpp File src/ports/SkFontConfigParser_android.cpp (right): https://codereview.chromium.org/439813002/diff/20001/src/ports/SkFontConfigParser_android.cpp#newcode78 ...
6 years, 4 months ago (2014-08-04 21:03:57 UTC) #5
bungeman-skia
lgtm with one possible nit https://codereview.chromium.org/439813002/diff/40001/src/ports/SkFontConfigParser_android.cpp File src/ports/SkFontConfigParser_android.cpp (right): https://codereview.chromium.org/439813002/diff/40001/src/ports/SkFontConfigParser_android.cpp#newcode175 src/ports/SkFontConfigParser_android.cpp:175: if (success && version ...
6 years, 4 months ago (2014-08-04 21:27:56 UTC) #6
tomhudson
The CQ bit was checked by tomhudson@google.com
6 years, 4 months ago (2014-08-05 13:25:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tomhudson@chromium.org/439813002/60001
6 years, 4 months ago (2014-08-05 13:25:25 UTC) #8
commit-bot: I haz the power
Change committed as f79673bbae0a662c1428755e2719dadf944e4ba1
6 years, 4 months ago (2014-08-05 13:36:23 UTC) #9
djsollen
6 years, 4 months ago (2014-08-05 15:52:01 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/439813002/diff/60001/tests/FontConfigParser.cpp
File tests/FontConfigParser.cpp (right):

https://codereview.chromium.org/439813002/diff/60001/tests/FontConfigParser.c...
tests/FontConfigParser.cpp:38:
GetResourcePath("android_fonts/pre_v17/system_fonts.xml").c_str(),
so these tests fail if you don't provide a resource path?  What is the standard
procedure if no path is provided?  In other testes do we pass with a warning or
fail?

Powered by Google App Engine
This is Rietveld 408576698