Lines Matching refs:fSkyline
24 for (int i = 0; i < fSkyline.count(); ++i) { in addRect()
28 if (y < bestY || (y == bestY && fSkyline[i].fWidth < bestWidth)) { in addRect()
30 bestWidth = fSkyline[i].fWidth; in addRect()
31 bestX = fSkyline[i].fX; in addRect()
53 int x = fSkyline[skylineIndex].fX; in rectangleFits()
60 int y = fSkyline[skylineIndex].fY; in rectangleFits()
62 y = std::max(y, fSkyline[i].fY); in rectangleFits()
66 widthLeft -= fSkyline[i].fWidth; in rectangleFits()
68 SkASSERT(i < fSkyline.count() || widthLeft <= 0); in rectangleFits()
80 fSkyline.insert(skylineIndex, 1, &newSegment); in addSkylineLevel()
86 for (int i = skylineIndex+1; i < fSkyline.count(); ++i) { in addSkylineLevel()
88 SkASSERT(fSkyline[i-1].fX <= fSkyline[i].fX); in addSkylineLevel()
90 if (fSkyline[i].fX < fSkyline[i-1].fX + fSkyline[i-1].fWidth) { in addSkylineLevel()
91 int shrink = fSkyline[i-1].fX + fSkyline[i-1].fWidth - fSkyline[i].fX; in addSkylineLevel()
93 fSkyline[i].fX += shrink; in addSkylineLevel()
94 fSkyline[i].fWidth -= shrink; in addSkylineLevel()
96 if (fSkyline[i].fWidth <= 0) { in addSkylineLevel()
98 fSkyline.remove(i); in addSkylineLevel()
110 for (int i = 0; i < fSkyline.count()-1; ++i) { in addSkylineLevel()
111 if (fSkyline[i].fY == fSkyline[i+1].fY) { in addSkylineLevel()
112 fSkyline[i].fWidth += fSkyline[i+1].fWidth; in addSkylineLevel()
113 fSkyline.remove(i+1); in addSkylineLevel()