Bug 180841

Summary: Make some functions in GraphicsContextCG use call_once for statics
Product: WebKit Reporter: Dean Jackson <dino>
Component: New BugsAssignee: Dean Jackson <dino>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, graouts, sam, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch graouts: review+

Description Dean Jackson 2017-12-14 14:27:00 PST
Make some functions in GraphicsContextCG use call_once for statics
Comment 1 Radar WebKit Bug Importer 2017-12-14 14:27:44 PST
<rdar://problem/36058448>
Comment 2 Dean Jackson 2017-12-14 14:35:18 PST
Created attachment 329405 [details]
Patch
Comment 3 Dean Jackson 2017-12-14 15:02:08 PST
Simon already did this... today!
Comment 4 Darin Adler 2017-12-17 10:37:02 PST
I think some big ones for this are going to be:

cachedCGColor in ColorCG.cpp
nsColor in ColorMac.mm
Comment 5 Dean Jackson 2017-12-18 00:51:18 PST
Reopening to attach new patch.
Comment 6 Dean Jackson 2017-12-18 00:51:21 PST
Created attachment 329643 [details]
Patch
Comment 7 Dean Jackson 2017-12-18 14:05:43 PST
Committed r226080: <https://trac.webkit.org/changeset/226080>
Comment 8 Simon Fraser (smfr) 2017-12-18 14:15:49 PST
What about the implementation of linearRGBColorSpaceRef() in GraphicsContextCocoa?

Also why you no cc me?
Comment 9 Antoine Quint 2017-12-19 00:18:55 PST
(In reply to Simon Fraser (smfr) from comment #8)

> Also why you no cc me?

As Dean's manager, you ought to be automatically Cc'd.