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

Issue 2246903002: SkPDF: SkPDFFont class changes (Closed)

Created:
4 years, 4 months ago by hal.canary
Modified:
4 years, 4 months ago
Reviewers:
bungeman-skia
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkPDF: SkPDFFont class changes SkPDFFont: * inline some one-line methdods. - SkPDFFont::typeface() - SkPDFFont::fontInfo() - SkPDFFont::firstGlyphID() - SkPDFFont::lastGlyphID() - SkPDFFont::getFontDescriptor() * de-virtualize some methods: - SkPDFFont::getType() - SkPDFFont::multiByteGlyphs() * Constructor takes more arguments: fontType, multiByteGlyphs * re-order fields (pointers before shorts) * use sk_sp<T> more, T* less SkAdvancedTypefaceMetrics: * SkAdvancedTypefaceMetrics::fFont now a uint8_t * other enumes are sized. * SkAdvancedTypefaceMetrics::fStyle now big enough. * remove use of SkTBitOr, replaced with fancy templates No public API changes. TBR=reed@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2246903002 Committed: https://skia.googlesource.com/skia/+/3287588a467ee579c3947fe13c6add5048b14aa9

Patch Set 1 #

Patch Set 2 : 2016-08-15 (Monday) 12:00:31 EDT #

Total comments: 16

Patch Set 3 : 2016-08-15 (Monday) 14:05:05 EDT #

Total comments: 12

Patch Set 4 : 2016-08-15 (Monday) 15:02:10 EDT #

Patch Set 5 : 2016-08-15 (Monday) 17:11:22 EDT #

Total comments: 6

Patch Set 6 : 2016-08-15 (Monday) 21:25:47 EDT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -205 lines) Patch
M include/core/SkTypeface.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
A include/private/SkBitmaskEnum.h View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
M src/core/SkAdvancedTypefaceMetrics.h View 1 2 3 4 5 5 chunks +23 lines, -23 lines 0 comments Download
M src/core/SkTypeface.cpp View 1 1 chunk +2 lines, -6 lines 0 comments Download
M src/pdf/SkPDFFont.h View 1 2 3 4 5 3 chunks +24 lines, -24 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 3 4 5 23 chunks +126 lines, -139 lines 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 2 3 4 2 chunks +5 lines, -10 lines 0 comments Download
M src/ports/SkFontHost_win.cpp View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 49 (34 generated)
hal.canary
PTAL no difference in output. passes valgrind.
4 years, 4 months ago (2016-08-15 16:02:14 UTC) #9
bungeman-skia
https://codereview.chromium.org/2246903002/diff/20001/src/core/SkAdvancedTypefaceMetrics.h File src/core/SkAdvancedTypefaceMetrics.h (right): https://codereview.chromium.org/2246903002/diff/20001/src/core/SkAdvancedTypefaceMetrics.h#newcode65 src/core/SkAdvancedTypefaceMetrics.h:65: uint8_t fFlags; Seems less clear now, before I knew ...
4 years, 4 months ago (2016-08-15 16:49:58 UTC) #12
hal.canary
https://codereview.chromium.org/2246903002/diff/20001/src/core/SkAdvancedTypefaceMetrics.h File src/core/SkAdvancedTypefaceMetrics.h (right): https://codereview.chromium.org/2246903002/diff/20001/src/core/SkAdvancedTypefaceMetrics.h#newcode65 src/core/SkAdvancedTypefaceMetrics.h:65: uint8_t fFlags; On 2016/08/15 16:49:58, bungeman-skia wrote: > Seems ...
4 years, 4 months ago (2016-08-15 18:05:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2246903002/60001
4 years, 4 months ago (2016-08-15 18:16:13 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on master.client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/10651)
4 years, 4 months ago (2016-08-15 18:35:32 UTC) #21
bungeman-skia
Since I'm afraid of 'friend definitions' and since enums in SkTypeface and about a hundred ...
4 years, 4 months ago (2016-08-15 20:17:04 UTC) #26
hal.canary
take a look at SkEnumOperators.h https://codereview.chromium.org/2246903002/diff/60001/src/core/SkAdvancedTypefaceMetrics.h File src/core/SkAdvancedTypefaceMetrics.h (right): https://codereview.chromium.org/2246903002/diff/60001/src/core/SkAdvancedTypefaceMetrics.h#newcode26 src/core/SkAdvancedTypefaceMetrics.h:26: #define SK_DEFINE_FLAG_OPERATORS(ENUM_T, UNDERLYING_T) \ ...
4 years, 4 months ago (2016-08-15 21:14:42 UTC) #30
hal.canary
take a look at SkEnumOperators.h
4 years, 4 months ago (2016-08-15 21:14:43 UTC) #31
bungeman-skia
https://codereview.chromium.org/2246903002/diff/120001/src/core/SkAdvancedTypefaceMetrics.h File src/core/SkAdvancedTypefaceMetrics.h (right): https://codereview.chromium.org/2246903002/diff/120001/src/core/SkAdvancedTypefaceMetrics.h#newcode100 src/core/SkAdvancedTypefaceMetrics.h:100: std::true_type {}; nit: it shouldn't be necessary to put ...
4 years, 4 months ago (2016-08-15 21:41:36 UTC) #34
hal.canary
https://codereview.chromium.org/2246903002/diff/120001/src/core/SkAdvancedTypefaceMetrics.h File src/core/SkAdvancedTypefaceMetrics.h (right): https://codereview.chromium.org/2246903002/diff/120001/src/core/SkAdvancedTypefaceMetrics.h#newcode100 src/core/SkAdvancedTypefaceMetrics.h:100: std::true_type {}; On 2016/08/15 21:41:36, bungeman-skia wrote: > nit: ...
4 years, 4 months ago (2016-08-16 01:27:38 UTC) #37
hal.canary
While at it, I did PerGlyphInfo
4 years, 4 months ago (2016-08-16 01:27:56 UTC) #38
bungeman-skia
lgtm
4 years, 4 months ago (2016-08-16 14:30:32 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2246903002/140001
4 years, 4 months ago (2016-08-16 14:48:25 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2246903002/140001
4 years, 4 months ago (2016-08-16 16:32:02 UTC) #47
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 16:36:27 UTC) #49
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://skia.googlesource.com/skia/+/3287588a467ee579c3947fe13c6add5048b14aa9

Powered by Google App Engine
This is Rietveld 408576698