Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@8693 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
skia.committer@gmail.com 2013-04-16 07:01:17 +00:00
parent 06910786a1
commit 7841c63136
4 changed files with 4 additions and 5 deletions

View File

@ -219,7 +219,7 @@ struct SkRationalQuad {
void evalAt(SkScalar t, SkPoint* pt) const;
void chopAt(SkScalar t, SkRationalQuad dst[2]) const;
void chop(SkRationalQuad dst[2]) const;
int computeQuadPOW2(SkScalar tol) const;
int chopIntoQuadsPOW2(SkPoint pts[], int pow2) const;
};

View File

@ -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;
}

View File

@ -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;

View File

@ -46,7 +46,7 @@ static const SortSetTests tests[] = {
{ set2, SK_ARRAY_COUNT(set2) }
};
static void setup(const SortSet* set, const size_t idx, SkPoint const ** data,
static void setup(const SortSet* set, const size_t idx, SkPoint const ** data,
SkPoint* reverse, SkOpSegment* seg) {
SkPoint start, end;
if (set[idx].ptCount == 2) {