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
Родитель 06910786a1
Коммит 7841c63136
4 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

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

Просмотреть файл

@ -1493,7 +1493,7 @@ int SkRationalQuad::computeQuadPOW2(SkScalar tol) const {
if (fW <= SK_ScalarNearlyZero) { if (fW <= SK_ScalarNearlyZero) {
return 0; // treat as a line return 0; // treat as a line
} }
tol = SkScalarAbs(tol); tol = SkScalarAbs(tol);
SkScalar w = fW; SkScalar w = fW;
int i = 0; int i = 0;
@ -1542,4 +1542,3 @@ int SkRationalQuad::chopIntoQuadsPOW2(SkPoint pts[], int pow2) const {
SkASSERT(endPts - pts == (2 * (1 << pow2) + 1)); SkASSERT(endPts - pts == (2 * (1 << pow2) + 1));
return 1 << pow2; return 1 << pow2;
} }

Просмотреть файл

@ -445,7 +445,7 @@ bool GrDrawTarget::setupDstReadIfNecessary(DrawInfo* info) {
SkIPoint dstPoint = {0, 0}; SkIPoint dstPoint = {0, 0};
if (this->copySurface(ast.texture(), rt, copyRect, dstPoint)) { if (this->copySurface(ast.texture(), rt, copyRect, dstPoint)) {
info->fDstCopy.setTexture(ast.texture()); info->fDstCopy.setTexture(ast.texture());
info->fDstCopy.setOffset(copyRect.fLeft, copyRect.fTop); info->fDstCopy.setOffset(copyRect.fLeft, copyRect.fTop);
return true; return true;
} else { } else {
return false; return false;

Просмотреть файл

@ -46,7 +46,7 @@ static const SortSetTests tests[] = {
{ set2, SK_ARRAY_COUNT(set2) } { 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* reverse, SkOpSegment* seg) {
SkPoint start, end; SkPoint start, end;
if (set[idx].ptCount == 2) { if (set[idx].ptCount == 2) {