diff options
author | mtklein <mtklein@chromium.org> | 2014-10-13 13:17:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-13 13:17:56 -0700 |
commit | 148ec59001ca7d7e54aec580a048c6dd2a085991 (patch) | |
tree | ee310a6be5a0b53ac4ed05dd6907bd0d328dda6d /include/ports/SkRemotableFontMgr.h | |
parent | 70242ace3b2ed06b33ee5ea5c9ac3aedea89b194 (diff) |
Require 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
Review URL: https://codereview.chromium.org/651723003
Diffstat (limited to 'include/ports/SkRemotableFontMgr.h')
-rw-r--r-- | include/ports/SkRemotableFontMgr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ports/SkRemotableFontMgr.h b/include/ports/SkRemotableFontMgr.h index bd99497cda..bf2459955f 100644 --- a/include/ports/SkRemotableFontMgr.h +++ b/include/ports/SkRemotableFontMgr.h @@ -46,7 +46,8 @@ public: private: SkRemotableFontIdentitySet() : fCount(0), fData() { } - static SkRemotableFontIdentitySet* NewEmptyImpl(); + + friend SkRemotableFontIdentitySet* sk_remotable_font_identity_set_new(); int fCount; SkAutoTMalloc<SkFontIdentity> fData; |