Chromium Code Reviews
DescriptionRequire SK_DECLARE_STATIC_LAZY_PTR is used in global scope.
Function- or method- local scope isn't threadsafe; the pointer is generally
zero-initialized on first use in function scope (i.e. lazily... we have to go
deeper), but for globals we can be pretty sure the linker will do that for us.
BUG=skia:
No public API changes.
TBR=reed@google.com
Committed: https://skia.googlesource.com/skia/+/148ec59001ca7d7e54aec580a048c6dd2a085991
Patch Set 1 #Patch Set 2 : explain more #Patch Set 3 : external linkage #Patch Set 4 : external linkage #Patch Set 5 : safe unref #
Messages
Total messages: 38 (12 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||