diff options
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; |