Lines Matching refs:fSkyline
22 for (int i = 0; i < fSkyline.count(); ++i) { in addRect()
26 if (y < bestY || (y == bestY && fSkyline[i].fWidth < bestWidth)) { in addRect()
28 bestWidth = fSkyline[i].fWidth; in addRect()
29 bestX = fSkyline[i].fX; in addRect()
51 int x = fSkyline[skylineIndex].fX; in rectangleFits()
58 int y = fSkyline[skylineIndex].fY; in rectangleFits()
60 y = SkMax32(y, fSkyline[i].fY); in rectangleFits()
64 widthLeft -= fSkyline[i].fWidth; in rectangleFits()
66 SkASSERT(i < fSkyline.count() || widthLeft <= 0); in rectangleFits()
78 fSkyline.insert(skylineIndex, 1, &newSegment); in addSkylineLevel()
84 for (int i = skylineIndex+1; i < fSkyline.count(); ++i) { in addSkylineLevel()
86 SkASSERT(fSkyline[i-1].fX <= fSkyline[i].fX); in addSkylineLevel()
88 if (fSkyline[i].fX < fSkyline[i-1].fX + fSkyline[i-1].fWidth) { in addSkylineLevel()
89 int shrink = fSkyline[i-1].fX + fSkyline[i-1].fWidth - fSkyline[i].fX; in addSkylineLevel()
91 fSkyline[i].fX += shrink; in addSkylineLevel()
92 fSkyline[i].fWidth -= shrink; in addSkylineLevel()
94 if (fSkyline[i].fWidth <= 0) { in addSkylineLevel()
96 fSkyline.remove(i); in addSkylineLevel()
108 for (int i = 0; i < fSkyline.count()-1; ++i) { in addSkylineLevel()
109 if (fSkyline[i].fY == fSkyline[i+1].fY) { in addSkylineLevel()
110 fSkyline[i].fWidth += fSkyline[i+1].fWidth; in addSkylineLevel()
111 fSkyline.remove(i+1); in addSkylineLevel()