Lines Matching refs:bounds
1021 static void set_bounds(const SkGlyph& g, SkRect* bounds) {
1022 bounds->set(SkIntToScalar(g.fLeft),
1036 static void join_bounds_x(const SkGlyph& g, SkRect* bounds, Sk48Dot16 dx) {
1038 bounds->join(SkIntToScalar(g.fLeft) + sx,
1044 static void join_bounds_y(const SkGlyph& g, SkRect* bounds, Sk48Dot16 dy) {
1046 bounds->join(SkIntToScalar(g.fLeft),
1062 int* count, SkRect* bounds) const {
1066 if (bounds) {
1067 bounds->setEmpty();
1074 NULL != bounds);
1096 if (NULL == bounds) {
1110 set_bounds(*g, bounds);
1117 joinBoundsProc(*g, bounds, x);
1123 joinBoundsProc(*g, bounds, x);
1135 SkRect* bounds, SkScalar zoom) const {
1157 width = paint.measure_text(cache, text, length, &tempCount, bounds);
1160 if (bounds) {
1161 bounds->fLeft = SkScalarMul(bounds->fLeft, scale);
1162 bounds->fTop = SkScalarMul(bounds->fTop, scale);
1163 bounds->fRight = SkScalarMul(bounds->fRight, scale);
1164 bounds->fBottom = SkScalarMul(bounds->fBottom, scale);
1167 } else if (bounds) {
1168 // ensure that even if we don't measure_text we still update the bounds
1169 bounds->setEmpty();
1326 static void set_bounds(const SkGlyph& g, SkRect* bounds, SkScalar scale) {
1327 bounds->set(g.fLeft * scale,
1334 SkScalar widths[], SkRect bounds[]) const {
1341 if (NULL == widths && NULL == bounds) {
1353 NULL != bounds);
1377 if (bounds) {
1378 set_bounds(g, bounds++, scale);
1396 if (bounds) {
1397 set_bounds(g, bounds++);
1413 if (bounds) {
1414 set_bounds(g, bounds++, scale);
1424 if (bounds) {
1425 set_bounds(g, bounds++);