Lines Matching refs:bounds
63 SkRect bounds;
64 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
66 SkScalar yOffset = bounds.height();
68 SkScalar corruptedAx = bounds.width();
71 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf;
72 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf;
82 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds);
86 xOffset - bounds.width() * 0.25f,
87 yOffset - bounds.height() * 0.5f);
94 font.measureText(fEmojiText, strlen(fEmojiText), SkTextEncoding::kUTF8, &bounds);
124 // compute the bounds of the text and setup some clips
125 SkRect bounds = fBlob->bounds();
127 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf;
128 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf;
132 SkRect upperLeftClip = SkRect::MakeXYWH(bounds.left(), bounds.top(),
134 SkRect lowerRightClip = SkRect::MakeXYWH(bounds.centerX(), bounds.centerY(),
136 SkRect interiorClip = bounds;
139 const SkRect clipRects[] = { bounds, upperLeftClip, lowerRightClip, interiorClip};
145 canvas->translate(SkScalarFloorToScalar(bounds.width() + SkIntToScalar(25)),
146 -(x * SkScalarFloorToScalar(bounds.height() +
149 canvas->translate(0, SkScalarFloorToScalar(bounds.height() + SkIntToScalar(25)));