Home
last modified time | relevance | path

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

/external/skqp/gm/
Dtallstretchedbitmaps.cpp16 constexpr 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
63 return SkISize::Make(2 * kMargin + 2 * kXfermodeTypeSpacing - in onISize()
65 2 * kMargin + kTitleSpacing + kSubtitleSpacing + in onISize()
100 canvas->translate(kMargin, kMargin); in draw_pass()
176 canvas->translate(kMargin, kMargin); in onDraw()
Dconvexpolyclip.cpp143 constexpr 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()
/external/skia/gm/
Dtallstretchedbitmaps.cpp16 constexpr 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.cpp22 kMargin = kShapeSpacing / 2, enumerator
64 return SkISize::Make(2 * kMargin + 2 * kXfermodeTypeSpacing - in onISize()
66 2 * kMargin + kTitleSpacing + kSubtitleSpacing + in onISize()
101 canvas->translate(kMargin, kMargin); in draw_pass()
177 canvas->translate(kMargin, kMargin); in onDraw()
Dconvexpolyclip.cpp143 constexpr 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()
/external/brotli/c/enc/
Dbackward_references_inc.h129 const size_t kMargin = in EXPORT_FN() local
132 BROTLI_MIN(size_t, position + 16, pos_end - kMargin); in EXPORT_FN()
138 const size_t kMargin = in EXPORT_FN() local
141 BROTLI_MIN(size_t, position + 8, pos_end - kMargin); in EXPORT_FN()