• Home
  • Raw
  • Download

Lines Matching refs:bounds

55         SkRect bounds;  in onOnceBeforeDraw()  local
56 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
58 SkScalar yOffset = bounds.height(); in onOnceBeforeDraw()
60 SkScalar corruptedAx = bounds.width(); in onOnceBeforeDraw()
63 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; in onOnceBeforeDraw()
64 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; in onOnceBeforeDraw()
74 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
75 sk_tool_utils::add_to_text_blob(&builder, text, font, xOffset - bounds.width() * 0.25f, in onOnceBeforeDraw()
76 yOffset - bounds.height() * 0.5f); in onOnceBeforeDraw()
77 yOffset += bounds.height(); in onOnceBeforeDraw()
85 font.measureText(text, strlen(text), kUTF8_SkTextEncoding, &bounds); in onOnceBeforeDraw()
86 sk_tool_utils::add_to_text_blob(&builder, text, font, xOffset - bounds.width() * 0.3f, in onOnceBeforeDraw()
117 SkRect bounds = fBlob->bounds(); in onDraw() local
119 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; in onDraw()
120 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; in onDraw()
124 SkRect upperLeftClip = SkRect::MakeXYWH(bounds.left(), bounds.top(), in onDraw()
126 SkRect lowerRightClip = SkRect::MakeXYWH(bounds.centerX(), bounds.centerY(), in onDraw()
128 SkRect interiorClip = bounds; in onDraw()
131 const SkRect clipRects[] = { bounds, upperLeftClip, lowerRightClip, interiorClip}; in onDraw()
137 canvas->translate(SkScalarFloorToScalar(bounds.width() + SkIntToScalar(25)), in onDraw()
138 -(x * SkScalarFloorToScalar(bounds.height() + in onDraw()
141 canvas->translate(0, SkScalarFloorToScalar(bounds.height() + SkIntToScalar(25))); in onDraw()