Chromium Code Reviews| Index: include/core/SkPathRef.h |
| diff --git a/include/core/SkPathRef.h b/include/core/SkPathRef.h |
| index 2c5086aa9211b33ebc3aff9a2df8b54a4118669a..e0758a47668b3269566bcd2319485bbf0d57f479 100644 |
| --- a/include/core/SkPathRef.h |
| +++ b/include/core/SkPathRef.h |
| @@ -112,6 +112,7 @@ public: |
| static SkPathRef* gEmptyPathRef; |
| if (!gEmptyPathRef) { |
| gEmptyPathRef = SkNEW(SkPathRef); // leak! |
| + gEmptyPathRef->computeBounds(); // Premptively avoid a race to clear fBoundsIsDirty. |
| } |
| return SkRef(gEmptyPathRef); |
| } |