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

Issue 2411643002: Make HarfBuzzFace release SimpleFontData. (Closed)

Created:
4 years, 2 months ago by jb
Modified:
4 years, 2 months ago
Reviewers:
drott, eae
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make HarfBuzzFace release SimpleFontData. HarfBuzzFace did a retained look up of SimpleFontData from the FontDataCache but never released the SimpleFontData. This caused the SimpleFontData to remain in the cache, indefinitely holding on to SkFontFaces and all associated data. This fix makes HarfBuzzFace release the SimpleFontData when deleted. BUG=617568 Committed: https://crrev.com/af675a084051af4b0fd90a66ddbc1373e3ddae8d Cr-Commit-Position: refs/heads/master@{#424993}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed m_simpleFontData from HarfBuzzFace. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp View 1 2 chunks +16 lines, -4 lines 3 comments Download

Messages

Total messages: 19 (6 generated)
jb
PTAL
4 years, 2 months ago (2016-10-11 09:54:37 UTC) #3
drott
That's a great find! I was looking for more unbalanced cache lookups to releaseFontData situations, ...
4 years, 2 months ago (2016-10-11 11:40:44 UTC) #4
jb
Thanks for clarifying. As for measurements. I picked up this leak in a page cycler ...
4 years, 2 months ago (2016-10-12 08:58:32 UTC) #5
jb
4 years, 2 months ago (2016-10-13 06:25:54 UTC) #6
drott
https://codereview.chromium.org/2411643002/diff/20001/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp File third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp (right): https://codereview.chromium.org/2411643002/diff/20001/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp#newcode97 third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp:97: if (m_simpleFontData) I think in the else case we ...
4 years, 2 months ago (2016-10-13 07:28:34 UTC) #7
drott
Thanks for updating the CL.
4 years, 2 months ago (2016-10-13 07:28:47 UTC) #8
jb
https://codereview.chromium.org/2411643002/diff/20001/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp File third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp (right): https://codereview.chromium.org/2411643002/diff/20001/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp#newcode97 third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp:97: if (m_simpleFontData) On 2016/10/13 07:28:34, drott wrote: > I ...
4 years, 2 months ago (2016-10-13 07:53:47 UTC) #9
drott
LGTM, again, great find, thanks for the CL. https://codereview.chromium.org/2411643002/diff/20001/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp File third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp (right): https://codereview.chromium.org/2411643002/diff/20001/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp#newcode97 third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp:97: if ...
4 years, 2 months ago (2016-10-13 08:06:29 UTC) #10
drott
Can you put bug 617568 in the CL description?
4 years, 2 months ago (2016-10-13 08:07:15 UTC) #11
jb
On 2016/10/13 08:07:15, drott wrote: > Can you put bug 617568 in the CL description? ...
4 years, 2 months ago (2016-10-13 08:46:25 UTC) #13
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/2411643002/20001
4 years, 2 months ago (2016-10-13 08:51:56 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-13 10:07:22 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 10:09:43 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/af675a084051af4b0fd90a66ddbc1373e3ddae8d
Cr-Commit-Position: refs/heads/master@{#424993}

Powered by Google App Engine
This is Rietveld 408576698