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

Issue 2037133002: SkFontConfigInterface createTypeface to makeTypeface. (Closed)

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

Description

SkFontConfigInterface createTypeface to makeTypeface. The createTypeface method (which returned a bare pointer to a reference counted object) is being replaced with makeTypeface (which returns a smart pointer to a reference counted object). This removes some manual reference counting in Chromium and allows for removing the deprecated createTypeface method. Committed: https://crrev.com/9d8ada9acb3bb8287191e193a2c1c9f85b2d124a Cr-Commit-Position: refs/heads/master@{#397794}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address comments. #

Patch Set 3 : move comes from utility. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -7 lines) Patch
M content/common/font_config_ipc_linux.h View 1 chunk +1 line, -1 line 1 comment Download
M content/common/font_config_ipc_linux.cc View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 22 (9 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/2037133002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2037133002/1
4 years, 6 months ago (2016-06-03 16:20:46 UTC) #2
bungeman-chromium
There is a general effort in Skia for factory methods to return smart pointers to ...
4 years, 6 months ago (2016-06-03 16:31:13 UTC) #4
f(malita)
LGTM w/ some nits. https://codereview.chromium.org/2037133002/diff/1/content/common/font_config_ipc_linux.cc File content/common/font_config_ipc_linux.cc (right): https://codereview.chromium.org/2037133002/diff/1/content/common/font_config_ipc_linux.cc#newcode172 content/common/font_config_ipc_linux.cc:172: SkTypeface::CreateFromStream(typeface_stream, identity.fTTCIndex)); SkTypeface::MakeFromStream while here? ...
4 years, 6 months ago (2016-06-03 17:12:00 UTC) #5
dcheng
Smart pointers, yay. LGTM.
4 years, 6 months ago (2016-06-03 17:30:39 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-03 18:16:51 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/2037133002/40001
4 years, 6 months ago (2016-06-03 18:23:59 UTC) #10
bungeman-chromium
https://codereview.chromium.org/2037133002/diff/1/content/common/font_config_ipc_linux.cc File content/common/font_config_ipc_linux.cc (right): https://codereview.chromium.org/2037133002/diff/1/content/common/font_config_ipc_linux.cc#newcode172 content/common/font_config_ipc_linux.cc:172: SkTypeface::CreateFromStream(typeface_stream, identity.fTTCIndex)); On 2016/06/03 17:11:59, f(malita) wrote: > SkTypeface::MakeFromStream ...
4 years, 6 months ago (2016-06-03 18:28:18 UTC) #11
f(malita)
https://codereview.chromium.org/2037133002/diff/1/content/common/font_config_ipc_linux.cc File content/common/font_config_ipc_linux.cc (right): https://codereview.chromium.org/2037133002/diff/1/content/common/font_config_ipc_linux.cc#newcode175 content/common/font_config_ipc_linux.cc:175: return mapped_typefaces_insert_it->second; On 2016/06/03 18:28:18, bungeman-chromium wrote: > On ...
4 years, 6 months ago (2016-06-03 19:04:03 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-03 20:23:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2037133002/40001
4 years, 6 months ago (2016-06-03 20:24:08 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-03 20:28:51 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/9d8ada9acb3bb8287191e193a2c1c9f85b2d124a Cr-Commit-Position: refs/heads/master@{#397794}
4 years, 6 months ago (2016-06-03 20:30:17 UTC) #20
drott
4 years, 6 months ago (2016-06-07 07:06:15 UTC) #22
Message was sent while issue was closed.
Nice change, thanks!

https://codereview.chromium.org/2037133002/diff/40001/content/common/font_con...
File content/common/font_config_ipc_linux.h (right):

https://codereview.chromium.org/2037133002/diff/40001/content/common/font_con...
content/common/font_config_ipc_linux.h:42: // Returns a new SkTypeface instance
or a ref'ed one from the cache. The
I guess this comment can be removed, or at least updated for the sk_sp return
type?

Powered by Google App Engine
This is Rietveld 408576698