aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkCanvas.cpp
diff options
context:
space:
mode:
authorGravatar rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-23 18:09:54 +0000
committerGravatar rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-23 18:09:54 +0000
commitfbfcd5602128ec010c82cb733c9cdc0a3254f9f3 (patch)
treed8b4815d15946c32ee9d254e932411e93be942bb /src/core/SkCanvas.cpp
parent2abed834789bb64c7da740df4c47efc142b7311a (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/SkCanvas.cpp')
-rw-r--r--src/core/SkCanvas.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 8b30897808..b7c06c3351 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -328,7 +328,7 @@ public:
} else {
return this->doNext(drawType);
}
- }
+ }
private:
SkLazyPaint fLazyPaint;
@@ -959,7 +959,7 @@ public:
SkBitmap* result, SkIPoint* offset) SK_OVERRIDE {
return fDevice->filterImage(filter, src, ctm, result, offset);
}
-
+
private:
SkDevice* fDevice;
};
@@ -997,18 +997,18 @@ void SkCanvas::internalDrawDevice(SkDevice* srcDev, int x, int y,
void SkCanvas::drawSprite(const SkBitmap& bitmap, int x, int y,
const SkPaint* paint) {
SkDEBUGCODE(bitmap.validate();)
-
+
if (reject_bitmap(bitmap)) {
return;
}
-
+
SkPaint tmp;
if (NULL == paint) {
paint = &tmp;
}
-
+
LOOPER_BEGIN_DRAWDEVICE(*paint, SkDrawFilter::kBitmap_Type)
-
+
while (iter.next()) {
paint = &looper.paint();
SkImageFilter* filter = paint->getImageFilter();
@@ -1165,11 +1165,11 @@ bool SkCanvas::clipPath(const SkPath& path, SkRegion::Op op, bool doAA) {
if (fMCRec->fRasterClip->isEmpty()) {
return false;
}
-
+
if (this->quickReject(path.getBounds())) {
fDeviceCMDirty = true;
fLocalBoundsCompareTypeDirty = true;
-
+
fClipStack.clipEmpty();
return fMCRec->fRasterClip->setEmpty();
}
@@ -1353,7 +1353,7 @@ bool SkCanvas::getClipBounds(SkRect* bounds) const {
// that can be larger than 32K in width or height).
r.iset(pinIntForScalar(ibounds.fLeft - inset),
pinIntForScalar(ibounds.fTop - inset),
- pinIntForScalar(ibounds.fRight + inset),
+ pinIntForScalar(ibounds.fRight + inset),
pinIntForScalar(ibounds.fBottom + inset));
inverse.mapRect(bounds, r);
}
@@ -1472,7 +1472,7 @@ void SkCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts[],
if (this->quickReject(paint.computeFastStrokeBounds(r, &storage))) {
return;
}
- }
+ }
SkASSERT(pts != NULL);