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;
};
if (fW <= SK_ScalarNearlyZero) {
return 0; // treat as a line
}
-
+
tol = SkScalarAbs(tol);
SkScalar w = fW;
int i = 0;
SkASSERT(endPts - pts == (2 * (1 << pow2) + 1));
return 1 << pow2;
}
-
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;
{ 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) {