Index: src/core/SkPathRef.cpp |
diff --git a/src/core/SkPathRef.cpp b/src/core/SkPathRef.cpp |
index 64f6fb86da465b300a727029c597d2212f08487d..57076939b67927c431faa02de36d1a5a3255f8cd 100644 |
--- a/src/core/SkPathRef.cpp |
+++ b/src/core/SkPathRef.cpp |
@@ -30,7 +30,9 @@ SkPathRef::Editor::Editor(SkAutoTUnref<SkPathRef>* pathRef, |
////////////////////////////////////////////////////////////////////////////// |
SkPathRef* SkPathRef::CreateEmptyImpl() { |
- return SkNEW(SkPathRef); |
+ SkPathRef* empty = SkNEW(SkPathRef); |
+ empty->computeBounds(); // Avoids races later to be the first to do this. |
+ return empty; |
} |
SkPathRef* SkPathRef::CreateEmpty() { |