| Index: src/fonts/SkRemotableFontMgr.cpp
|
| diff --git a/src/fonts/SkRemotableFontMgr.cpp b/src/fonts/SkRemotableFontMgr.cpp
|
| index 41e3bc3235b67b1756e333bb8988c36bc58f3f0f..5299fad5fdcc1d03d0254137a92316fa12679693 100644
|
| --- a/src/fonts/SkRemotableFontMgr.cpp
|
| +++ b/src/fonts/SkRemotableFontMgr.cpp
|
| @@ -5,8 +5,9 @@
|
| * found in the LICENSE file.
|
| */
|
|
|
| -#include "SkOncePtr.h"
|
| #include "SkRemotableFontMgr.h"
|
| +
|
| +#include "SkLazyPtr.h"
|
|
|
| SkRemotableFontIdentitySet::SkRemotableFontIdentitySet(int count, SkFontIdentity** data)
|
| : fCount(count), fData(count)
|
| @@ -15,7 +16,12 @@
|
| *data = fData;
|
| }
|
|
|
| -SK_DECLARE_STATIC_ONCE_PTR(SkRemotableFontIdentitySet, empty);
|
| +// As a template argument, this must have external linkage.
|
| +SkRemotableFontIdentitySet* sk_remotable_font_identity_set_new() {
|
| + return new SkRemotableFontIdentitySet;
|
| +}
|
| +
|
| +SK_DECLARE_STATIC_LAZY_PTR(SkRemotableFontIdentitySet, empty, sk_remotable_font_identity_set_new);
|
| SkRemotableFontIdentitySet* SkRemotableFontIdentitySet::NewEmpty() {
|
| - return SkRef(empty.get([]{ return new SkRemotableFontIdentitySet; }));
|
| + return SkRef(empty.get());
|
| }
|
|
|