diff options
author | 2013-04-16 07:01:17 +0000 | |
---|---|---|
committer | 2013-04-16 07:01:17 +0000 | |
commit | 7841c63136e8aa2d3aadbeab8432405abcd73c32 (patch) | |
tree | b350eea1586dc09dcd4f956209a78b45e5c6af46 /src | |
parent | 06910786a1068faf9a1119f2163cc44c7c81fae0 (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@8693 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkGeometry.cpp | 3 | ||||
-rw-r--r-- | src/gpu/GrDrawTarget.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/core/SkGeometry.cpp b/src/core/SkGeometry.cpp index a96e35b0f5..e5487e687f 100644 --- a/src/core/SkGeometry.cpp +++ b/src/core/SkGeometry.cpp @@ -1493,7 +1493,7 @@ int SkRationalQuad::computeQuadPOW2(SkScalar tol) const { if (fW <= SK_ScalarNearlyZero) { return 0; // treat as a line } - + tol = SkScalarAbs(tol); SkScalar w = fW; int i = 0; @@ -1542,4 +1542,3 @@ int SkRationalQuad::chopIntoQuadsPOW2(SkPoint pts[], int pow2) const { SkASSERT(endPts - pts == (2 * (1 << pow2) + 1)); return 1 << pow2; } - diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp index e875f0f93c..4e8ae7d56c 100644 --- a/src/gpu/GrDrawTarget.cpp +++ b/src/gpu/GrDrawTarget.cpp @@ -445,7 +445,7 @@ bool GrDrawTarget::setupDstReadIfNecessary(DrawInfo* info) { SkIPoint dstPoint = {0, 0}; if (this->copySurface(ast.texture(), rt, copyRect, dstPoint)) { info->fDstCopy.setTexture(ast.texture()); - info->fDstCopy.setOffset(copyRect.fLeft, copyRect.fTop); + info->fDstCopy.setOffset(copyRect.fLeft, copyRect.fTop); return true; } else { return false; |