Lines Matching refs:bounds
47 // Empty font bounds are likely a font bug. TightBounds has a better chance of
62 SkRect bounds = SkRect::MakeEmpty();
65 bounds.join(scaleAndTranslateRect(r, pos));
68 return bounds;
71 SkRect bounds = SkRect::MakeEmpty();
78 bounds.join(xform.mapRect(glyph->rect()));
81 return bounds;
85 // Use conservative bounds. All glyph have a box of fontBounds size.
87 SkRect bounds;
88 bounds.setBounds(this->positions().data(), SkCount(this->positions()));
89 bounds.fLeft += fontBounds.left();
90 bounds.fTop += fontBounds.top();
91 bounds.fRight += fontBounds.right();
92 bounds.fBottom += fontBounds.bottom();
93 return bounds;
96 SkRect bounds;
97 bounds.setEmpty();
100 bounds.join(SkMatrix().setRSXform(xform).mapRect(fontBounds));
102 return bounds;
110 SkRect bounds,
115 , fSourceBounds{bounds}
118 SkGlyphRunList::SkGlyphRunList(const SkGlyphRun& glyphRun, const SkRect& bounds, SkPoint origin)
121 , fSourceBounds{bounds}
194 SkRect bounds = SkRect::MakeEmpty();
204 bounds = fGlyphRunListStorage.front().sourceBounds(paint);
207 return this->makeGlyphRunList(nullptr, bounds.makeOffset(origin), origin);
266 return this->makeGlyphRunList(&blob, blob.bounds().makeOffset(origin), origin);
349 const SkTextBlob* blob, const SkRect& bounds, SkPoint origin) {
352 SkGlyphRunList{blob, bounds, origin, SkMakeSpan(fGlyphRunListStorage)};