diff options
author | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-23 18:09:54 +0000 |
---|---|---|
committer | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-23 18:09:54 +0000 |
commit | fbfcd5602128ec010c82cb733c9cdc0a3254f9f3 (patch) | |
tree | d8b4815d15946c32ee9d254e932411e93be942bb /src/core/SkRasterClip.cpp | |
parent | 2abed834789bb64c7da740df4c47efc142b7311a (diff) |
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)
This CL is part I of IV (I broke down the 1280 files into 4 CLs).
Review URL: https://codereview.appspot.com/6485054
git-svn-id: http://skia.googlecode.com/svn/trunk@5262 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkRasterClip.cpp')
-rw-r--r-- | src/core/SkRasterClip.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/SkRasterClip.cpp b/src/core/SkRasterClip.cpp index aea731e1af..4312717a44 100644 --- a/src/core/SkRasterClip.cpp +++ b/src/core/SkRasterClip.cpp @@ -17,7 +17,7 @@ SkRasterClip::SkRasterClip() { SkRasterClip::SkRasterClip(const SkRasterClip& src) { AUTO_RASTERCLIP_VALIDATE(src); - + fIsBW = src.fIsBW; if (fIsBW) { fBW = src.fBW; @@ -62,7 +62,7 @@ bool SkRasterClip::setEmpty() { bool SkRasterClip::setRect(const SkIRect& rect) { AUTO_RASTERCLIP_VALIDATE(*this); - + fIsBW = true; fAA.setEmpty(); fIsRect = fBW.setRect(rect); @@ -108,14 +108,14 @@ bool SkRasterClip::setPath(const SkPath& path, const SkRasterClip& clip, bool SkRasterClip::op(const SkIRect& rect, SkRegion::Op op) { AUTO_RASTERCLIP_VALIDATE(*this); - + fIsBW ? fBW.op(rect, op) : fAA.op(rect, op); return this->updateCacheAndReturnNonEmpty(); } bool SkRasterClip::op(const SkRegion& rgn, SkRegion::Op op) { AUTO_RASTERCLIP_VALIDATE(*this); - + if (fIsBW) { (void)fBW.op(rgn, op); } else { @@ -165,7 +165,7 @@ static bool nearly_integral(SkScalar x) { bool SkRasterClip::op(const SkRect& r, SkRegion::Op op, bool doAA) { AUTO_RASTERCLIP_VALIDATE(*this); - + if (fIsBW && doAA) { // check that the rect really needs aa, or is it close enought to // integer boundaries that we can just treat it as a BW rect? @@ -194,7 +194,7 @@ void SkRasterClip::translate(int dx, int dy, SkRasterClip* dst) const { } AUTO_RASTERCLIP_VALIDATE(*this); - + if (this->isEmpty()) { dst->setEmpty(); return; @@ -223,7 +223,7 @@ bool SkRasterClip::quickContains(const SkIRect& ir) const { const SkRegion& SkRasterClip::forceGetBW() { AUTO_RASTERCLIP_VALIDATE(*this); - + if (!fIsBW) { fBW.setRect(fAA.getBounds()); } @@ -232,7 +232,7 @@ const SkRegion& SkRasterClip::forceGetBW() { void SkRasterClip::convertToAA() { AUTO_RASTERCLIP_VALIDATE(*this); - + SkASSERT(fIsBW); fAA.setRegion(fBW); fIsBW = false; |