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

Issue 897953006: generalize FcFontRenderPrepare supression (Closed)

Created:
5 years, 10 months ago by mtklein_C
Modified:
5 years, 10 months ago
Reviewers:
bungeman-skia, mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

generalize FcFontRenderPrepare supression BUG=skia:

Patch Set 1 #

Patch Set 2 : ios too? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M gyp/common_conditions.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/valgrind.supp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
mtklein
5 years, 10 months ago (2015-02-05 15:58:35 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/897953006/1
5 years, 10 months ago (2015-02-05 15:59:32 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 10 months ago (2015-02-05 15:59:33 UTC) #5
bungeman-skia
5 years, 10 months ago (2015-02-05 16:29:51 UTC) #6
Now I remember why this wasn't this broad before. The one thing we do kinda care
about is that we don't leak the returned FcPattern*. The first thing
FcFontRenderPrepare does is "FcPattern* new = FcPatternCreate();", and we would
like to track that allocation. The rest of what this function does will probably
end up 'lost' to pointer following checkers. I wish FcFontRenderPrepare just
took an mutable FcPattern* and mucked with it instead.

Just so we can track the returned allocation, how about adding

{
    #Same root cause as font_config_bug_2.
    #The 'leak' is a copy of font or pattern values into returned pattern
values.
    font_config_bug_4
    Memcheck:Leak
    fun:*alloc
    ...
    fun:FcValue*
    fun:FcFontRenderPrepare
}

so long as we're not leaking the returned pointer, any leaks are FontConfig's.

Powered by Google App Engine
This is Rietveld 408576698