Home
last modified time | relevance | path

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

/third_party/skia/gm/
Dtallstretchedbitmaps.cpp23 constexpr int kMargin = 8; in make_bm() local
29 int count = (height / (2 * kRadius + kMargin)); in make_bm()
30 height = count * (2 * kRadius + kMargin); in make_bm()
32 bm->allocN32Pixels(2 * (kRadius + kMargin), height); in make_bm()
43 SkIRect subRect = SkIRect::MakeXYWH(0, i * (kMargin + 2 * kRadius), in make_bm()
44 2 * kRadius + kMargin, 2 * kRadius + kMargin); in make_bm()
47 canvas.translate(kMargin + kRadius, kMargin + kRadius); in make_bm()
Dhairlines.cpp147 kMargin = 5, in onDraw() enumerator
149 int wrapX = 1250 - kMargin; in onDraw()
152 canvas->translate(SkIntToScalar(kMargin), SkIntToScalar(kMargin)); in onDraw()
155 SkScalar x = SkIntToScalar(kMargin); in onDraw()
164 canvas->translate(0, maxH + SkIntToScalar(kMargin)); in onDraw()
167 x = SkIntToScalar(kMargin); in onDraw()
183 SkScalar dx = bounds.width() + SkIntToScalar(kMargin); in onDraw()
Daaxfermodes.cpp32 kMargin = kShapeSpacing / 2, enumerator
74 return SkISize::Make(2 * kMargin + 2 * kXfermodeTypeSpacing - in onISize()
76 2 * kMargin + kTitleSpacing + kSubtitleSpacing + in onISize()
112 canvas->translate(kMargin, kMargin); in draw_pass()
187 canvas->translate(kMargin, kMargin); in onDraw()
Dconvexpolyclip.cpp158 constexpr SkScalar kMargin = 10.f; in onDraw() local
191 x += fImg->width() + kMargin; in onDraw()
218 x += textW + 2 * kMargin; in onDraw()
220 y += fImg->height() + kMargin; in onDraw()
223 startX += 2 * fImg->width() + SkScalarCeilToInt(2 * textW) + 6 * kMargin; in onDraw()
Dblurrect.cpp276 static constexpr float kMargin = 30; in onDraw() local
279 totalW += w + kMargin; in onDraw()
281 canvas->translate(kMargin, kMargin); in onDraw()
319 canvas->translate(w + kMargin, 0.f); in onDraw()
322 canvas->translate(0, h + kMargin); in onDraw()
326 canvas->translate(totalW + 2 * kMargin, 0); in onDraw()
/third_party/flutter/skia/gm/
Dtallstretchedbitmaps.cpp23 constexpr int kMargin = 8; in make_bm() local
29 int count = (height / (2 * kRadius + kMargin)); in make_bm()
30 height = count * (2 * kRadius + kMargin); in make_bm()
32 bm->allocN32Pixels(2 * (kRadius + kMargin), height); in make_bm()
43 SkIRect subRect = SkIRect::MakeXYWH(0, i * (kMargin + 2 * kRadius), in make_bm()
44 2 * kRadius + kMargin, 2 * kRadius + kMargin); in make_bm()
47 canvas.translate(kMargin + kRadius, kMargin + kRadius); in make_bm()
Dhairlines.cpp176 kMargin = 5, in onDraw() enumerator
178 int wrapX = 1250 - kMargin; in onDraw()
181 canvas->translate(SkIntToScalar(kMargin), SkIntToScalar(kMargin)); in onDraw()
184 SkScalar x = SkIntToScalar(kMargin); in onDraw()
193 canvas->translate(0, maxH + SkIntToScalar(kMargin)); in onDraw()
196 x = SkIntToScalar(kMargin); in onDraw()
212 SkScalar dx = bounds.width() + SkIntToScalar(kMargin); in onDraw()
Daaxfermodes.cpp32 kMargin = kShapeSpacing / 2, enumerator
74 return SkISize::Make(2 * kMargin + 2 * kXfermodeTypeSpacing - in onISize()
76 2 * kMargin + kTitleSpacing + kSubtitleSpacing + in onISize()
110 canvas->translate(kMargin, kMargin); in draw_pass()
185 canvas->translate(kMargin, kMargin); in onDraw()
Dconvexpolyclip.cpp160 constexpr SkScalar kMargin = 10.f; in onDraw() local
195 x += fBmp.width() + kMargin; in onDraw()
223 x += textW + 2 * kMargin; in onDraw()
225 y += fBmp.height() + kMargin; in onDraw()
228 startX += 2 * fBmp.width() + SkScalarCeilToInt(2 * textW) + 6 * kMargin; in onDraw()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawInvertedDepthRangesTests.cpp78 constexpr float kMargin = 0.2f; // Space between triangle and image border. See kVertices. variable
87 …Vec4(-1.0f + kMargin, -1.0f + kMargin, -0.2f, 1.0f), // 0---…
88 Vec4(-1.0f + kMargin, 1.0f - kMargin + kDiagonalMargin, 0.0f, 1.0f), // | /
89 Vec4( 1.0f - kMargin + kDiagonalMargin, -1.0f + kMargin, 1.2f, 1.0f), // 1|/
410 const float p1f = fImageDim * kMargin / 2.0f; in generateReferenceImage()
411 const float p2f = fImageDim * (2.0f - kMargin + kDiagonalMargin) / 2.0f; in generateReferenceImage()
412 const float triangleSide = fImageDim * (2.0f - (2.0f*kMargin - kDiagonalMargin)) / 2.0f; in generateReferenceImage()
/third_party/node/deps/brotli/c/enc/
Dbackward_references_inc.h139 const size_t kMargin = in EXPORT_FN() local
142 BROTLI_MIN(size_t, position + 16, pos_end - kMargin); in EXPORT_FN()
148 const size_t kMargin = in EXPORT_FN() local
151 BROTLI_MIN(size_t, position + 8, pos_end - kMargin); in EXPORT_FN()
/third_party/skia/third_party/externals/brotli/c/enc/
Dbackward_references_inc.h139 const size_t kMargin = in EXPORT_FN() local
142 BROTLI_MIN(size_t, position + 16, pos_end - kMargin); in EXPORT_FN()
148 const size_t kMargin = in EXPORT_FN() local
151 BROTLI_MIN(size_t, position + 8, pos_end - kMargin); in EXPORT_FN()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/wsi/
DvktWsiPresentIdWaitTests.cpp71 constexpr deUint64 kMargin = 100000000ull; variable
82 deUint64 timeoutMin = ((timeout < kMargin) ? 0ull : (timeout - kMargin)); in calcTimeoutRange()
83 deUint64 timeoutMax = ((kUnsignedMax - timeout < kMargin) ? kUnsignedMax : timeout + kMargin); in calcTimeoutRange()
/third_party/gn/src/gn/
Djson_project_writer.cc343 static const char kMargin[17] = " "; in AddMargin() local
347 out_.Append(kMargin, span); in AddMargin()
/third_party/ninja/src/
Dutil.cc605 const int kMargin = 3; // Space for "...". in ElideMiddle() local
608 size_t elide_size = (width - kMargin) / 2; in ElideMiddle()
/third_party/grpc/src/objective-c/tests/UnitTests/
DGRPCClientTests.m561 const double kMargin = 0.1;
584 maxConnectTime + kMargin);
DAPIv2Tests.m430 const double kMargin = 0.1;
455 maxConnectTime + kMargin);