aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-04 07:01:12 +0000
committerGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-04 07:01:12 +0000
commita9493a3c78f6eb82635ece960b4f16918b885428 (patch)
tree52d1e332325e5eca57c50b29ed2cf1edb07ccc12 /src/gpu
parente06f8ef5ba369f6bb1ed83ebe230db68198abf7c (diff)
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@8529 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrDrawTarget.cpp6
-rw-r--r--src/gpu/GrDrawTarget.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
index 6edb109bc6..a0c15dd5e8 100644
--- a/src/gpu/GrDrawTarget.cpp
+++ b/src/gpu/GrDrawTarget.cpp
@@ -757,7 +757,7 @@ bool GrDrawTarget::copySurface(GrSurface* dst,
const SkIPoint& dstPoint) {
SkIRect clippedSrcRect(srcRect);
SkIPoint clippedDstPoint(dstPoint);
-
+
// clip the left edge to src and dst bounds, adjusting dstPoint if neceessary
if (clippedSrcRect.fLeft < 0) {
clippedDstPoint.fX -= clippedSrcRect.fLeft;
@@ -777,7 +777,7 @@ bool GrDrawTarget::copySurface(GrSurface* dst,
clippedSrcRect.fTop -= clippedDstPoint.fY;
clippedDstPoint.fY = 0;
}
-
+
// clip the right edge to the src and dst bounds.
if (clippedSrcRect.fRight > src->width()) {
clippedSrcRect.fRight = src->width();
@@ -793,7 +793,7 @@ bool GrDrawTarget::copySurface(GrSurface* dst,
if (clippedDstPoint.fY + clippedSrcRect.height() > dst->height()) {
clippedSrcRect.fBottom = clippedSrcRect.fTop + dst->height() - clippedDstPoint.fY;
}
-
+
// The above clipping steps may have inverted the rect if it didn't intersect either the src or
// dst bounds.
if (clippedSrcRect.isEmpty()) {
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index ffde27e4b6..99fb15fe80 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -406,7 +406,7 @@ public:
virtual void clear(const GrIRect* rect,
GrColor color,
GrRenderTarget* renderTarget = NULL) = 0;
-
+
/**
* Copies a pixel rectangle from one surface to another. This call may finalize
* reserved vertex/index data (as though a draw call was made). The src pixels