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

Issue 2500643002: Add skia extension to allow setting default fontmgr on linux. Use it to allow the linux blimp clien… (Closed)

Created:
4 years, 1 month ago by steimel
Modified:
4 years, 1 month ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add skia extension to allow setting default fontmgr on linux. Use it to allow the linux blimp client to use android fonts BUG=617821 Committed: https://crrev.com/f6c1cd2bb6a2253e9547c091671c98ed28300685 Committed: https://crrev.com/deb6095223d0ee029136cb1708d81c3d91257e0b Cr-Original-Commit-Position: refs/heads/master@{#432023} Cr-Commit-Position: refs/heads/master@{#433292}

Patch Set 1 #

Patch Set 2 : Rebase to deal with merge conflict #

Total comments: 8

Patch Set 3 : Use sk_sp instead of unique_ptr #

Total comments: 2

Patch Set 4 : Fix shared pointer reference issue #

Patch Set 5 : Change fontmgr to bare pointer to avoid global object/dtor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -2 lines) Patch
M blimp/client/app/linux/blimp_main.cc View 1 2 3 4 3 chunks +49 lines, -0 lines 0 comments Download
M blimp/client/core/switches/blimp_client_switches.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M blimp/client/core/switches/blimp_client_switches.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M skia/BUILD.gn View 1 3 chunks +1 line, -2 lines 0 comments Download
A skia/ext/fontmgr_default_linux.h View 3 4 1 chunk +14 lines, -0 lines 0 comments Download
A skia/ext/fontmgr_default_linux.cc View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (19 generated)
steimel
Finally getting around to this after putting on the backburner for Helium development. PTAL
4 years, 1 month ago (2016-11-11 23:28:06 UTC) #2
bungeman-chromium
https://codereview.chromium.org/2500643002/diff/20001/blimp/client/app/linux/blimp_main.cc File blimp/client/app/linux/blimp_main.cc (right): https://codereview.chromium.org/2500643002/diff/20001/blimp/client/app/linux/blimp_main.cc#newcode63 blimp/client/app/linux/blimp_main.cc:63: std::unique_ptr<SkFontMgr> CreateAndroidFontMgr(std::string android_fonts_dir) { I think you want to ...
4 years, 1 month ago (2016-11-14 16:03:48 UTC) #11
steimel
https://codereview.chromium.org/2500643002/diff/20001/blimp/client/app/linux/blimp_main.cc File blimp/client/app/linux/blimp_main.cc (right): https://codereview.chromium.org/2500643002/diff/20001/blimp/client/app/linux/blimp_main.cc#newcode63 blimp/client/app/linux/blimp_main.cc:63: std::unique_ptr<SkFontMgr> CreateAndroidFontMgr(std::string android_fonts_dir) { On 2016/11/14 16:03:48, bungeman-chromium wrote: ...
4 years, 1 month ago (2016-11-14 18:04:43 UTC) #12
bungeman-chromium
https://codereview.chromium.org/2500643002/diff/40001/skia/ext/fontmgr_default_linux.cc File skia/ext/fontmgr_default_linux.cc (right): https://codereview.chromium.org/2500643002/diff/40001/skia/ext/fontmgr_default_linux.cc#newcode21 skia/ext/fontmgr_default_linux.cc:21: return g_default_fontmgr.get(); This needs to return a reference (sorry ...
4 years, 1 month ago (2016-11-14 18:10:03 UTC) #13
steimel
Thanks for your help! https://codereview.chromium.org/2500643002/diff/40001/skia/ext/fontmgr_default_linux.cc File skia/ext/fontmgr_default_linux.cc (right): https://codereview.chromium.org/2500643002/diff/40001/skia/ext/fontmgr_default_linux.cc#newcode21 skia/ext/fontmgr_default_linux.cc:21: return g_default_fontmgr.get(); On 2016/11/14 18:10:03, ...
4 years, 1 month ago (2016-11-14 18:15:11 UTC) #14
bungeman-chromium
The Skia parts at least lgtm. Don't know much about how the back-end works though.
4 years, 1 month ago (2016-11-14 18:22:05 UTC) #15
bungeman-skia
OWNER lgtm for skia/.
4 years, 1 month ago (2016-11-14 18:22:43 UTC) #17
Khushal
On 2016/11/14 18:22:43, bungeman-skia wrote: > OWNER lgtm for skia/. blimp LGTM.
4 years, 1 month ago (2016-11-14 20:30:08 UTC) #18
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/2500643002/60001
4 years, 1 month ago (2016-11-14 21:42:45 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-15 00:41:31 UTC) #21
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/f6c1cd2bb6a2253e9547c091671c98ed28300685 Cr-Commit-Position: refs/heads/master@{#432023}
4 years, 1 month ago (2016-11-15 00:50:35 UTC) #23
horo
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2503763002/ by horo@chromium.org. ...
4 years, 1 month ago (2016-11-15 03:46:01 UTC) #24
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/2500643002/80001
4 years, 1 month ago (2016-11-18 19:11:01 UTC) #28
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/2500643002/80001
4 years, 1 month ago (2016-11-18 19:44:56 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-18 20:57:14 UTC) #33
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/deb6095223d0ee029136cb1708d81c3d91257e0b Cr-Commit-Position: refs/heads/master@{#433292}
4 years, 1 month ago (2016-11-18 20:59:23 UTC) #35
krasin1
For the record, this has broken CFI Linux ToT and CFI Linux Full bots: https://build.chromium.org/p/chromium.fyi/builders/CFI%20Linux%20ToT/builds/4948/ ...
4 years, 1 month ago (2016-11-19 01:17:20 UTC) #36
krasin1
On 2016/11/19 01:17:20, krasin1 wrote: > For the record, this has broken CFI Linux ToT ...
4 years, 1 month ago (2016-11-19 01:20:49 UTC) #37
krasin1
Reproduced locally: ../../third_party/skia/src/core/SkFixedAlloc.h:39:20: runtime error: control flow integrity check for type '(anonymous namespace)::SrcFPPixel<SkAlphaType::kUnpremul_SkAlphaType>' failed durin│··················· ...
4 years, 1 month ago (2016-11-19 02:06:50 UTC) #38
krasin1
The tentative fix is https://skia-review.googlesource.com/c/5074/
4 years, 1 month ago (2016-11-19 02:30:14 UTC) #39
krasin1
4 years, 1 month ago (2016-11-19 03:34:18 UTC) #40
Message was sent while issue was closed.
On 2016/11/19 02:30:14, krasin1 wrote:
> The tentative fix is https://skia-review.googlesource.com/c/5074/

Local testing confirmed that the fix is correct.

Powered by Google App Engine
This is Rietveld 408576698