Lines Matching refs:bounds
61 SkRect bounds;
62 paint.measureText(text, strlen(text), &bounds);
64 SkScalar yOffset = bounds.height();
66 SkScalar corruptedAx = bounds.width();
69 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf;
70 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf;
80 paint.measureText(text, strlen(text), &bounds);
81 sk_tool_utils::add_to_text_blob(&builder, text, paint, xOffset - bounds.width() * 0.25f,
82 yOffset - bounds.height() * 0.5f);
83 yOffset += bounds.height();
90 paint.measureText(text, strlen(text), &bounds);
91 sk_tool_utils::add_to_text_blob(&builder, text, paint, xOffset - bounds.width() * 0.3f,
122 // compute the bounds of the text and setup some clips
123 SkRect bounds = fBlob->bounds();
125 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf;
126 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf;
130 SkRect upperLeftClip = SkRect::MakeXYWH(bounds.left(), bounds.top(),
132 SkRect lowerRightClip = SkRect::MakeXYWH(bounds.centerX(), bounds.centerY(),
134 SkRect interiorClip = bounds;
137 const SkRect clipRects[] = { bounds, upperLeftClip, lowerRightClip, interiorClip};
143 canvas->translate(SkScalarFloorToScalar(bounds.width() + SkIntToScalar(25)),
144 -(x * SkScalarFloorToScalar(bounds.height() +
147 canvas->translate(0, SkScalarFloorToScalar(bounds.height() + SkIntToScalar(25)));