Lines Matching defs:width
13 bool GrRectanizerSkyline::addRect(int width, int height, SkIPoint16* loc) {
14 if ((unsigned)width > (unsigned)this->width() ||
20 int bestWidth = this->width() + 1;
26 if (this->rectangleFits(i, width, height, &y)) {
27 // minimize y position first, then width of skyline
39 this->addSkylineLevel(bestIndex, bestX, bestY, width, height);
43 fAreaSoFar += width*height;
52 bool GrRectanizerSkyline::rectangleFits(int skylineIndex, int width, int height, int* ypos) const {
54 if (x + width > this->width()) {
58 int widthLeft = width;
75 void GrRectanizerSkyline::addSkylineLevel(int skylineIndex, int x, int y, int width, int height) {
79 newSegment.fWidth = width;
82 SkASSERT(newSegment.fX + newSegment.fWidth <= this->width());
85 // delete width of the new skyline segment from following ones
121 GrRectanizer* GrRectanizer::Factory(int width, int height) {
122 return new GrRectanizerSkyline(width, height);