Home | History | Annotate | Download | only in core

Lines Matching defs:bbox

59     SkRect bbox;
60 bbox.set(pts, SkToInt(count));
72 bbox.outset(halfStrokeWidth, halfStrokeWidth);
73 if (this->transformBounds(bbox, &paint)) {
79 SkRect bbox;
80 if (this->getClipBounds(&bbox)) {
81 if (this->transformBounds(bbox, &paint)) {
89 SkRect bbox = {0, 0, SkIntToScalar(size.width()), SkIntToScalar(size.height())};
90 this->handleBBox(bbox);
96 SkRect bbox;
97 paint.measureText(text, byteLength, &bbox);
103 SkScalar h = bbox.fBottom - bbox.fTop;
105 bbox.fTop -= h / 2;
106 bbox.fBottom -= h / 2;
109 bbox.fBottom += metrics.fBottom;
110 bbox.fTop += metrics.fTop;
112 SkScalar w = bbox.fRight - bbox.fLeft;
114 bbox.fLeft -= w / 2;
115 bbox.fRight -= w / 2;
117 bbox.fLeft -= w;
118 bbox.fRight -= w;
121 bbox.fTop = metrics.fTop;
122 bbox.fBottom = metrics.fBottom;
130 bbox.fLeft -= pad;
131 bbox.fRight += pad;
133 bbox.fLeft += x;
134 bbox.fRight += x;
135 bbox.fTop += y;
136 bbox.fBottom += y;
137 if (this->transformBounds(bbox, &paint)) {
144 SkRect bbox = {left, top, left + bitmap.width(), top + bitmap.height()};
145 if (this->transformBounds(bbox, paint)) {
161 SkRect bbox = {0, 0, SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height())};
162 m.mapRect(&bbox);
163 if (this->transformBounds(bbox, paint)) {
189 SkRect bbox;
190 bbox.set(pos, paint.countText(text, byteLength));
193 bbox.fTop += metrics.fTop;
194 bbox.fBottom += metrics.fBottom;
199 bbox.fLeft += pad;
200 bbox.fRight -= pad;
202 if (this->transformBounds(bbox, &paint)) {
221 SkRect bbox;
222 bbox.fLeft = SK_ScalarMax;
223 bbox.fRight = SK_ScalarMin;
226 if (xpos[i] < bbox.fLeft) {
227 bbox.fLeft = xpos[i];
229 if (xpos[i] > bbox.fRight) {
230 bbox.fRight = xpos[i];
236 bbox.fLeft += pad;
237 bbox.fRight -= pad;
239 bbox.fTop = top + constY;
240 bbox.fBottom = bottom + constY;
242 if (!this->transformBounds(bbox, &paint)) {
253 SkRect bbox;
254 bbox.set(SkIRect::MakeXYWH(left, top, bitmap.width(), bitmap.height()));
255 this->handleBBox(bbox); // directly call handleBBox, matrix is ignored
261 SkRect bbox = path.getBounds();
267 bbox.fLeft += pad;
268 bbox.fRight -= pad;
269 bbox.fTop += pad;
270 bbox.fBottom -= pad;
272 if (this->transformBounds(bbox, &paint)) {
279 SkRect bbox = blob->bounds();
280 bbox.offset(x, y);
282 if (bbox.isEmpty()) {
283 this->getClipBounds(&bbox);
286 if (this->transformBounds(bbox, &paint)) {
296 SkRect bbox;
297 bbox.set(vertices, vertexCount);
298 if (this->transformBounds(bbox, &paint)) {
307 SkRect bbox;
308 bbox.set(cubics, SkPatchUtils::kNumCtrlPts);
309 if (this->transformBounds(bbox, &paint)) {