Home | History | Annotate | Download | only in gpu

Lines Matching refs:fSkyline

22     for (int i = 0; i < fSkyline.count(); ++i) {
26 if (y < bestY || (y == bestY && fSkyline[i].fWidth < bestWidth)) {
28 bestWidth = fSkyline[i].fWidth;
29 bestX = fSkyline[i].fX;
51 int x = fSkyline[skylineIndex].fX;
58 int y = fSkyline[skylineIndex].fY;
60 y = SkMax32(y, fSkyline[i].fY);
64 widthLeft -= fSkyline[i].fWidth;
66 SkASSERT(i < fSkyline.count() || widthLeft <= 0);
78 fSkyline.insert(skylineIndex, 1, &newSegment);
84 for (int i = skylineIndex+1; i < fSkyline.count(); ++i) {
85 // The new segment subsumes all or part of fSkyline[i]
86 SkASSERT(fSkyline[i-1].fX <= fSkyline[i].fX);
88 if (fSkyline[i].fX < fSkyline[i-1].fX + fSkyline[i-1].fWidth) {
89 int shrink = fSkyline[i-1].fX + fSkyline[i-1].fWidth - fSkyline[i].fX;
91 fSkyline[i].fX += shrink;
92 fSkyline[i].fWidth -= shrink;
94 if (fSkyline[i].fWidth <= 0) {
96 fSkyline.remove(i);
108 for (int i = 0; i < fSkyline.count()-1; ++i) {
109 if (fSkyline[i].fY == fSkyline[i+1].fY) {
110 fSkyline[i].fWidth += fSkyline[i+1].fWidth;
111 fSkyline.remove(i+1);