commit | 7a6a1ea54fa24dd4f6e9811e4f843f387fda3457 | [log] [tgz] |
---|---|---|
author | Mike Klein <mtklein@google.com> | Tue Sep 30 10:22:09 2014 -0400 |
committer | Mike Klein <mtklein@google.com> | Tue Sep 30 10:22:09 2014 -0400 |
tree | 8352ddc698d0a3c11a56d80191b623f2388198e2 | |
parent | 334896049dc5e1620d754368dc6d02856e79dc91 [diff] |
Merge empty path ref bounds initialization into M39. Merging this CL: https://skia.googlesource.com/skia/+/51936a3f07d18654be966527691067729c070bd3 Original review: https://codereview.chromium.org/603503003 Review URL: https://codereview.chromium.org/618753002
diff --git a/src/core/SkPathRef.cpp b/src/core/SkPathRef.cpp index 64f6fb8..5707693 100644 --- a/src/core/SkPathRef.cpp +++ b/src/core/SkPathRef.cpp
@@ -30,7 +30,9 @@ ////////////////////////////////////////////////////////////////////////////// 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() {