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

Issue 1982303002: Make GrFontScaler not be ref-counted (Closed)

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

Description

Make GrFontScaler not be ref-counted This object is made invalid when the SkGlyphCache that it points to is destroyed. BUG=chromium:608566 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1982303002 Committed: https://skia.googlesource.com/skia/+/4bb7ce7b3d64841bed5a4e8e71f2a8e79d3db413

Patch Set 1 #

Patch Set 2 : update INHERITED #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M src/gpu/text/GrFontScaler.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M src/gpu/text/GrTextUtils.cpp View 1 chunk +1 line, -1 line 1 comment Download

Dependent Patchsets:

Messages

Total messages: 21 (9 generated)
bsalomon
4 years, 7 months ago (2016-05-17 13:11:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982303002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982303002/1
4 years, 7 months ago (2016-05-17 13:11:36 UTC) #5
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 7 months ago (2016-05-17 13:11:37 UTC) #6
robertphillips
lgtm
4 years, 7 months ago (2016-05-17 13:18:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982303002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982303002/20001
4 years, 7 months ago (2016-05-17 13:28:07 UTC) #9
commit-bot: I haz the power
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/8652)
4 years, 7 months ago (2016-05-17 14:08:57 UTC) #11
bungeman-skia
This lgtm, but possible additional cleanup for the future... https://codereview.chromium.org/1982303002/diff/20001/src/gpu/text/GrTextUtils.cpp File src/gpu/text/GrTextUtils.cpp (right): https://codereview.chromium.org/1982303002/diff/20001/src/gpu/text/GrTextUtils.cpp#newcode578 src/gpu/text/GrTextUtils.cpp:578: ...
4 years, 7 months ago (2016-05-17 14:14:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982303002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982303002/20001
4 years, 7 months ago (2016-05-17 14:40:57 UTC) #14
commit-bot: I haz the power
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/8654)
4 years, 7 months ago (2016-05-17 15:01:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982303002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982303002/20001
4 years, 7 months ago (2016-05-17 15:25:13 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/4bb7ce7b3d64841bed5a4e8e71f2a8e79d3db413
4 years, 7 months ago (2016-05-17 15:36:45 UTC) #20
bsalomon
4 years, 7 months ago (2016-05-17 16:05:27 UTC) #21
Message was sent while issue was closed.
On 2016/05/17 14:14:05, bungeman-skia wrote:
> This lgtm, but possible additional cleanup for the future...
> 
>
https://codereview.chromium.org/1982303002/diff/20001/src/gpu/text/GrTextUtil...
> File src/gpu/text/GrTextUtils.cpp (right):
> 
>
https://codereview.chromium.org/1982303002/diff/20001/src/gpu/text/GrTextUtil...
> src/gpu/text/GrTextUtils.cpp:578: GrFontScaler*
> GrTextUtils::GetGrFontScaler(SkGlyphCache* cache) {
> It actually seems strange that this is in GrTextUtils as well, since this is
the
> only valid way to call the constructor for GrFontScaler (it's a factory). It
> seems like this function should be named GrFontScaler::Get(SkGlyphCache*
strike)
> and the GrFontScaler constructor be made private.

There will definitely be more cleanup coming...

Powered by Google App Engine
This is Rietveld 408576698