Home | History | Annotate | Download | only in gm

Lines Matching refs:bounds

56         SkRect bounds;
57 paint.measureText(text, strlen(text), &bounds);
59 SkScalar yOffset = bounds.height();
61 SkScalar corruptedAx = bounds.width();
64 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf;
65 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf;
76 paint.measureText(text, strlen(text), &bounds);
77 sk_tool_utils::add_to_text_blob(&builder, text, paint, xOffset - bounds.width() * 0.25f,
78 yOffset - bounds.height() * 0.5f);
79 yOffset += bounds.height();
88 paint.measureText(text, strlen(text), &bounds);
89 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)));