Home | History | Annotate | Download | only in core

Lines Matching defs:bbox

52     SkRect bbox;
53 bbox.set(pts, SkToInt(count));
65 bbox.outset(halfStrokeWidth, halfStrokeWidth);
66 if (this->transformBounds(bbox, &paint)) {
72 SkRect bbox;
73 if (this->getClipBounds(&bbox)) {
74 if (this->transformBounds(bbox, &paint)) {
82 SkRect bbox = {0, 0, SkIntToScalar(size.width()), SkIntToScalar(size.height())};
83 this->handleBBox(bbox);
89 SkRect bbox;
90 paint.measureText(text, byteLength, &bbox);
96 SkScalar h = bbox.fBottom - bbox.fTop;
98 bbox.fTop -= h / 2;
99 bbox.fBottom -= h / 2;
102 bbox.fBottom += metrics.fBottom;
103 bbox.fTop += metrics.fTop;
105 SkScalar w = bbox.fRight - bbox.fLeft;
107 bbox.fLeft -= w / 2;
108 bbox.fRight -= w / 2;
110 bbox.fLeft -= w;
111 bbox.fRight -= w;
114 bbox.fTop = metrics.fTop;
115 bbox.fBottom = metrics.fBottom;
123 bbox.fLeft -= pad;
124 bbox.fRight += pad;
126 bbox.fLeft += x;
127 bbox.fRight += x;
128 bbox.fTop += y;
129 bbox.fBottom += y;
130 if (this->transformBounds(bbox, &paint)) {
137 SkRect bbox = {left, top, left + bitmap.width(), top + bitmap.height()};
138 if (this->transformBounds(bbox, paint)) {
154 SkRect bbox = {0, 0, SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height())};
155 m.mapRect(&bbox);
156 if (this->transformBounds(bbox, paint)) {
182 SkRect bbox;
183 bbox.set(pos, paint.countText(text, byteLength));
186 bbox.fTop += metrics.fTop;
187 bbox.fBottom += metrics.fBottom;
192 bbox.fLeft += pad;
193 bbox.fRight -= pad;
195 if (this->transformBounds(bbox, &paint)) {
214 SkRect bbox;
215 bbox.fLeft = SK_ScalarMax;
216 bbox.fRight = SK_ScalarMin;
219 if (xpos[i] < bbox.fLeft) {
220 bbox.fLeft = xpos[i];
222 if (xpos[i] > bbox.fRight) {
223 bbox.fRight = xpos[i];
229 bbox.fLeft += pad;
230 bbox.fRight -= pad;
232 bbox.fTop = top + constY;
233 bbox.fBottom = bottom + constY;
235 if (!this->transformBounds(bbox, &paint)) {
246 SkRect bbox;
247 bbox.set(SkIRect::MakeXYWH(left, top, bitmap.width(), bitmap.height()));
248 this->handleBBox(bbox); // directly call handleBBox, matrix is ignored
254 SkRect bbox = path.getBounds();
260 bbox.fLeft += pad;
261 bbox.fRight -= pad;
262 bbox.fTop += pad;
263 bbox.fBottom -= pad;
265 if (this->transformBounds(bbox, &paint)) {
275 SkRect bbox;
276 bbox.set(vertices, vertexCount);
277 if (this->transformBounds(bbox, &paint)) {