Home
last modified time | relevance | path

Searched refs:kMargin (Results 1 – 4 of 4) sorted by relevance

/external/skia/gm/
Dtallstretchedbitmaps.cpp16 static const int kMargin = 8; in make_bm() local
22 int count = (height / (2 * kRadius + kMargin)); in make_bm()
23 height = count * (2 * kRadius + kMargin); in make_bm()
25 bm->allocN32Pixels(2 * (kRadius + kMargin), height); in make_bm()
36 SkIRect subRect = SkIRect::MakeXYWH(0, i * (kMargin + 2 * kRadius), in make_bm()
37 2 * kRadius + kMargin, 2 * kRadius + kMargin); in make_bm()
40 canvas.translate(kMargin + kRadius, kMargin + kRadius); in make_bm()
Dhairlines.cpp170 kMargin = 5, in onDraw() enumerator
172 int wrapX = 1250 - kMargin; in onDraw()
175 canvas->translate(SkIntToScalar(kMargin), SkIntToScalar(kMargin)); in onDraw()
178 SkScalar x = SkIntToScalar(kMargin); in onDraw()
187 canvas->translate(0, maxH + SkIntToScalar(kMargin)); in onDraw()
190 x = SkIntToScalar(kMargin); in onDraw()
206 SkScalar dx = bounds.width() + SkIntToScalar(kMargin); in onDraw()
Daaxfermodes.cpp21 kMargin = kShapeSpacing / 2, enumerator
65 return SkISize::Make(2 * kMargin + 2 * kXfermodeTypeSpacing - in onISize()
67 2 * kMargin + kTitleSpacing + kSubtitleSpacing + in onISize()
102 canvas->translate(kMargin, kMargin); in draw_pass()
175 canvas->translate(kMargin, kMargin); in onDraw()
Dconvexpolyclip.cpp143 static const SkScalar kMargin = 10.f; in onDraw() local
180 x += fBmp.width() + kMargin; in onDraw()
209 x += textW + 2 * kMargin; in onDraw()
211 y += fBmp.height() + kMargin; in onDraw()
214 startX += 2 * fBmp.width() + SkScalarCeilToInt(2 * textW) + 6 * kMargin; in onDraw()