WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
234060
Make FontCache::invalidateAllFontCaches call invalidate on all worker FontCaches
https://bugs.webkit.org/show_bug.cgi?id=234060
Summary
Make FontCache::invalidateAllFontCaches call invalidate on all worker FontCaches
Cameron McCormack (:heycam)
Reported
2021-12-08 18:47:48 PST
Make FontCache::invalidateAllFontCaches call invalidate on all worker FontCaches
Attachments
Patch
(3.76 KB, patch)
2021-12-08 18:49 PST
,
Cameron McCormack (:heycam)
darin
: review+
Details
Formatted Diff
Diff
Patch
(3.99 KB, patch)
2022-07-24 19:50 PDT
,
Matt Woodrow
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Cameron McCormack (:heycam)
Comment 1
2021-12-08 18:49:38 PST
Created
attachment 446481
[details]
Patch
Darin Adler
Comment 2
2021-12-08 19:00:05 PST
Comment on
attachment 446481
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=446481&action=review
> Source/WebCore/platform/graphics/FontCache.cpp:397 > +static void callOnAllFontCaches(F function)
Can we use WTF::function instead of making this entire thing a template? Is "call" really the right way to describe something that posts tasks on the run loop?
> Source/WebCore/platform/graphics/FontCache.cpp:417 > +void FontCache::invalidateAllFontCaches() > +{ > + callOnAllFontCaches([](FontCache& fontCache) { > + fontCache.invalidate(); > + }); > }
For the purposes that callers intend, is it OK that this posts tasks that invalidate the font caches in the future, and doesn’t finish invalidating them before returning? Should we change the name to make that clearer?
Radar WebKit Bug Importer
Comment 3
2021-12-15 18:48:16 PST
<
rdar://problem/86553783
>
Matt Woodrow
Comment 4
2022-07-24 19:50:08 PDT
(In reply to Darin Adler from
comment #2
)
> Comment on
attachment 446481
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=446481&action=review
> > > Source/WebCore/platform/graphics/FontCache.cpp:397 > > +static void callOnAllFontCaches(F function) > > Can we use WTF::function instead of making this entire thing a template?
WTF::function isn't copyable, so we can't pass it to all of the worker threads. Adding something like a thread safe refcounted wrapper doesn't seem worth it to me.
Matt Woodrow
Comment 5
2022-07-24 19:50:24 PDT
Created
attachment 461188
[details]
Patch
EWS
Comment 6
2022-07-24 20:58:19 PDT
Committed
252778@main
(073740c9d994): <
https://commits.webkit.org/252778@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 461188
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug