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:
parent
06910786a1
commit
7841c63136
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user