зеркало из https://github.com/mozilla/moz-skia.git
shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@4174 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
411dad0630
Коммит
06c279e42a
|
@ -1063,17 +1063,17 @@ finish:
|
|||
int firstT = 0;
|
||||
int lastT = 0;
|
||||
int firstCoinT = 0;
|
||||
SkScalar topY = fPts[0].fY;
|
||||
SkPoint topPt = fPts[0];
|
||||
int count = fTs.count();
|
||||
int index;
|
||||
for (index = 1; index < count; ++index) {
|
||||
const Span& span = fTs[index];
|
||||
double t = span.fT;
|
||||
SkScalar yIntercept = t == 1 ? fPts[fVerb].fY : yAtT(t);
|
||||
if (topY > yIntercept) {
|
||||
topY = yIntercept;
|
||||
const SkPoint& intercept = xyAtT(&span);
|
||||
if (topPt.fY > intercept.fY || (topPt.fY == intercept.fY
|
||||
&& topPt.fX > intercept.fX)) {
|
||||
topPt = intercept;
|
||||
firstT = lastT = firstCoinT = index;
|
||||
} else if (topY == yIntercept) {
|
||||
} else if (topPt == intercept) {
|
||||
lastT = index;
|
||||
if (span.fCoincident) {
|
||||
firstCoinT = index;
|
||||
|
|
|
@ -104,7 +104,7 @@ static void (*tests[])() = {
|
|||
|
||||
static const size_t testCount = sizeof(tests) / sizeof(tests[0]);
|
||||
|
||||
static void (*firstTest)() = 0;
|
||||
static void (*firstTest)() = testLine5;
|
||||
static bool skipAll = false;
|
||||
|
||||
void SimplifyNew_Test() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче