| Index: src/core/SkPathRef.cpp
|
| diff --git a/src/core/SkPathRef.cpp b/src/core/SkPathRef.cpp
|
| index 57076939b67927c431faa02de36d1a5a3255f8cd..dffb6a3646aefd27727ff357d63f855e4e4247b0 100644
|
| --- a/src/core/SkPathRef.cpp
|
| +++ b/src/core/SkPathRef.cpp
|
| @@ -29,14 +29,16 @@ SkPathRef::Editor::Editor(SkAutoTUnref<SkPathRef>* pathRef,
|
|
|
| //////////////////////////////////////////////////////////////////////////////
|
|
|
| -SkPathRef* SkPathRef::CreateEmptyImpl() {
|
| +// As a template argument, this must have external linkage.
|
| +SkPathRef* sk_create_empty_pathref() {
|
| SkPathRef* empty = SkNEW(SkPathRef);
|
| empty->computeBounds(); // Avoids races later to be the first to do this.
|
| return empty;
|
| }
|
|
|
| +SK_DECLARE_STATIC_LAZY_PTR(SkPathRef, empty, sk_create_empty_pathref);
|
| +
|
| SkPathRef* SkPathRef::CreateEmpty() {
|
| - SK_DECLARE_STATIC_LAZY_PTR(SkPathRef, empty, CreateEmptyImpl);
|
| return SkRef(empty.get());
|
| }
|
|
|
|
|