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

Issue 1955053002: SkAdvancedTypefaceMetrics: getAdvanceData uses std::function (Closed)

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

Description

SkAdvancedTypefaceMetrics: getAdvanceData uses std::function Reduce templatedness. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1955053002 Committed: https://skia.googlesource.com/skia/+/57cd94a9defda8fb37913049f80544d292d99232

Patch Set 1 #

Total comments: 3

Patch Set 2 : 2016-05-06 (Friday) 12:08:37 EDT #

Total comments: 4

Patch Set 3 : rebase, comments from bungeman@ #

Patch Set 4 : typedef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -118 lines) Patch
M src/core/SkAdvancedTypefaceMetrics.h View 1 2 3 1 chunk +3 lines, -6 lines 0 comments Download
M src/core/SkAdvancedTypefaceMetrics.cpp View 1 2 3 4 chunks +2 lines, -60 lines 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 2 3 2 chunks +13 lines, -12 lines 0 comments Download
M src/ports/SkFontHost_mac.cpp View 1 2 3 2 chunks +14 lines, -11 lines 0 comments Download
M src/ports/SkFontHost_win.cpp View 1 2 3 2 chunks +19 lines, -16 lines 0 comments Download
M src/ports/SkTypeface_win_dw.cpp View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M tests/WArrayTest.cpp View 1 2 1 chunk +9 lines, -11 lines 0 comments Download

Messages

Total messages: 42 (18 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/1955053002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955053002/1
4 years, 7 months ago (2016-05-06 15:45:55 UTC) #3
hal.canary
PTAL
4 years, 7 months ago (2016-05-06 15:49:54 UTC) #5
herb_g
https://codereview.chromium.org/1955053002/diff/1/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): https://codereview.chromium.org/1955053002/diff/1/src/ports/SkFontHost_FreeType.cpp#newcode617 src/ports/SkFontHost_FreeType.cpp:617: std::function<bool(int gId, int16_t* data)> getWidthAdvanceFn = Use auto instead ...
4 years, 7 months ago (2016-05-06 15:54:16 UTC) #6
tomhudson
OK, this is more type-safe than the version that used void*, but lambdas? Please *at ...
4 years, 7 months ago (2016-05-06 15:56:38 UTC) #7
tomhudson
https://codereview.chromium.org/1955053002/diff/1/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): https://codereview.chromium.org/1955053002/diff/1/src/ports/SkFontHost_FreeType.cpp#newcode617 src/ports/SkFontHost_FreeType.cpp:617: std::function<bool(int gId, int16_t* data)> getWidthAdvanceFn = On 2016/05/06 15:54:16, ...
4 years, 7 months ago (2016-05-06 15:58:02 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955053002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955053002/40001
4 years, 7 months ago (2016-05-06 16:00:42 UTC) #10
hal.canary
https://codereview.chromium.org/1955053002/diff/1/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): https://codereview.chromium.org/1955053002/diff/1/src/ports/SkFontHost_FreeType.cpp#newcode617 src/ports/SkFontHost_FreeType.cpp:617: std::function<bool(int gId, int16_t* data)> getWidthAdvanceFn = On 2016/05/06 15:54:16, ...
4 years, 7 months ago (2016-05-06 16:00:56 UTC) #11
hal.canary
4 years, 7 months ago (2016-05-06 16:00:59 UTC) #12
hal.canary
On 2016/05/06 15:56:38, tomhudson wrote: > Please *at least* update the comment for getAdvanceData(), which ...
4 years, 7 months ago (2016-05-06 16:01:31 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/8461)
4 years, 7 months ago (2016-05-06 16:03:13 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955053002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955053002/60001
4 years, 7 months ago (2016-05-06 16:09:02 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-06 16:33:15 UTC) #20
bungeman-skia
It generally seems like a good idea. https://codereview.chromium.org/1955053002/diff/60001/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): https://codereview.chromium.org/1955053002/diff/60001/src/ports/SkFontHost_FreeType.cpp#newcode618 src/ports/SkFontHost_FreeType.cpp:618: [face](int gId, ...
4 years, 7 months ago (2016-05-09 00:14:09 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955053002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955053002/80001
4 years, 7 months ago (2016-05-09 12:14:03 UTC) #24
hal.canary
https://codereview.chromium.org/1955053002/diff/60001/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): https://codereview.chromium.org/1955053002/diff/60001/src/ports/SkFontHost_FreeType.cpp#newcode618 src/ports/SkFontHost_FreeType.cpp:618: [face](int gId, int16_t* data) { On 2016/05/09 00:14:08, bungeman-skia ...
4 years, 7 months ago (2016-05-09 12:15:08 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/8447) Build-Win-MSVC-x86_64-Debug-Trybot on ...
4 years, 7 months ago (2016-05-09 12:18:14 UTC) #28
tomhudson
Don't entirely agree with Ben, but sure, if we're going to go lambda we should ...
4 years, 7 months ago (2016-05-09 13:01:56 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955053002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955053002/100001
4 years, 7 months ago (2016-05-09 13:08:44 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955053002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955053002/120001
4 years, 7 months ago (2016-05-09 13:13:57 UTC) #34
hal.canary
On 2016/05/09 13:01:56, tomhudson wrote: > Don't entirely agree with Ben, but sure, if we're ...
4 years, 7 months ago (2016-05-09 13:19:11 UTC) #35
tomhudson
lgtm
4 years, 7 months ago (2016-05-09 13:25:18 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-09 13:32:47 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1955053002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1955053002/120001
4 years, 7 months ago (2016-05-09 13:33:44 UTC) #40
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 13:34:44 UTC) #42
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://skia.googlesource.com/skia/+/57cd94a9defda8fb37913049f80544d292d99232

Powered by Google App Engine
This is Rietveld 408576698