aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRegion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkRegion.cpp')
-rw-r--r--src/core/SkRegion.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkRegion.cpp b/src/core/SkRegion.cpp
index 776f3e8d33..e6ed68f456 100644
--- a/src/core/SkRegion.cpp
+++ b/src/core/SkRegion.cpp
@@ -89,7 +89,7 @@ SkRegion::~SkRegion() {
}
void SkRegion::freeRuns() {
- if (fRunHead->isComplex()) {
+ if (this->isComplex()) {
SkASSERT(fRunHead->fRefCnt >= 1);
if (sk_atomic_dec(&fRunHead->fRefCnt) == 1) {
//SkASSERT(gRgnAllocCounter > 0);
@@ -152,7 +152,7 @@ bool SkRegion::setRegion(const SkRegion& src) {
fBounds = src.fBounds;
fRunHead = src.fRunHead;
- if (fRunHead->isComplex()) {
+ if (this->isComplex()) {
sk_atomic_inc(&fRunHead->fRefCnt);
}
}
@@ -277,7 +277,7 @@ bool SkRegion::setRuns(RunType runs[], int count) {
// if we get here, we need to become a complex region
- if (!fRunHead->isComplex() || fRunHead->fRunCount != count) {
+ if (!this->isComplex() || fRunHead->fRunCount != count) {
this->freeRuns();
this->allocateRuns(count);
}
@@ -518,7 +518,7 @@ bool SkRegion::operator==(const SkRegion& b) const {
return true;
}
// now we insist that both are complex (but different ptrs)
- if (!ah->isComplex() || !bh->isComplex()) {
+ if (!this->isComplex() || !b.isComplex()) {
return false;
}
return ah->fRunCount == bh->fRunCount &&