зеркало из https://github.com/mozilla/moz-skia.git
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:
Родитель
06910786a1
Коммит
7841c63136
|
@ -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) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче