Index: src/core/SkPathRef.cpp |
diff --git a/src/core/SkPathRef.cpp b/src/core/SkPathRef.cpp |
index ad85fd06a8023c8d7ccc07cac6252e2173bfb1f6..aed6cdaee74b5bef155de6a5f33a73be226fe592 100644 |
--- a/src/core/SkPathRef.cpp |
+++ b/src/core/SkPathRef.cpp |
@@ -87,13 +87,13 @@ void SkPathRef::CreateTransformedCopy(SkAutoTUnref<SkPathRef>* dst, |
if (canXformBounds) { |
(*dst)->fBoundsIsDirty = false; |
if (src.fIsFinite) { |
- matrix.mapRect((*dst)->fBounds.get(), src.fBounds); |
- if (!((*dst)->fIsFinite = (*dst)->fBounds->isFinite())) { |
- (*dst)->fBounds->setEmpty(); |
+ matrix.mapRect(&(*dst)->fBounds, src.fBounds); |
+ if (!((*dst)->fIsFinite = (*dst)->fBounds.isFinite())) { |
+ (*dst)->fBounds.setEmpty(); |
} |
} else { |
(*dst)->fIsFinite = false; |
- (*dst)->fBounds->setEmpty(); |
+ (*dst)->fBounds.setEmpty(); |
} |
} else { |
(*dst)->fBoundsIsDirty = true; |
@@ -449,14 +449,14 @@ void SkPathRef::validate() const { |
SkASSERT(this->currSize() == |
fFreeSpace + sizeof(SkPoint) * fPointCnt + sizeof(uint8_t) * fVerbCnt); |
- if (!fBoundsIsDirty && !fBounds->isEmpty()) { |
+ if (!fBoundsIsDirty && !fBounds.isEmpty()) { |
bool isFinite = true; |
for (int i = 0; i < fPointCnt; ++i) { |
SkASSERT(!fPoints[i].isFinite() || ( |
- fBounds->fLeft - fPoints[i].fX < SK_ScalarNearlyZero && |
- fPoints[i].fX - fBounds->fRight < SK_ScalarNearlyZero && |
- fBounds->fTop - fPoints[i].fY < SK_ScalarNearlyZero && |
- fPoints[i].fY - fBounds->fBottom < SK_ScalarNearlyZero)); |
+ fBounds.fLeft - fPoints[i].fX < SK_ScalarNearlyZero && |
+ fPoints[i].fX - fBounds.fRight < SK_ScalarNearlyZero && |
+ fBounds.fTop - fPoints[i].fY < SK_ScalarNearlyZero && |
+ fPoints[i].fY - fBounds.fBottom < SK_ScalarNearlyZero)); |
if (!fPoints[i].isFinite()) { |
isFinite = false; |
} |