Home
last modified time | relevance | path

Searched refs:kMargin (Results 1 - 12 of 12) sorted by relevance

/third_party/skia/gm/
H A 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()
H A Dhairlines.cpp147 kMargin = 5, enumerator
149 int wrapX = 1250 - kMargin;
152 canvas->translate(SkIntToScalar(kMargin), SkIntToScalar(kMargin));
155 SkScalar x = SkIntToScalar(kMargin);
164 canvas->translate(0, maxH + SkIntToScalar(kMargin));
167 x = SkIntToScalar(kMargin);
183 SkScalar dx = bounds.width() + SkIntToScalar(kMargin);
H A Daaxfermodes.cpp32 kMargin = kShapeSpacing / 2, enumerator
74 return SkISize::Make(2 * kMargin + 2 * kXfermodeTypeSpacing -
76 2 * kMargin + kTitleSpacing + kSubtitleSpacing +
112 canvas->translate(kMargin, kMargin); in draw_pass()
187 canvas->translate(kMargin, kMargin);
H A Dconvexpolyclip.cpp158 constexpr SkScalar kMargin = 10.f; variable
191 x += fImg->width() + kMargin;
218 x += textW + 2 * kMargin;
220 y += fImg->height() + kMargin;
223 startX += 2 * fImg->width() + SkScalarCeilToInt(2 * textW) + 6 * kMargin;
H A Dblurrect.cpp276 static constexpr float kMargin = 30; variable
279 totalW += w + kMargin;
281 canvas->translate(kMargin, kMargin);
319 canvas->translate(w + kMargin, 0.f);
322 canvas->translate(0, h + kMargin);
326 canvas->translate(totalW + 2 * kMargin, 0);
/third_party/node/deps/brotli/c/enc/
H A Dbackward_references_inc.h139 const size_t kMargin = in CreateBackwardReferences() local
142 BROTLI_MIN(size_t, position + 16, pos_end - kMargin); in CreateBackwardReferences()
148 const size_t kMargin = in CreateBackwardReferences() local
151 BROTLI_MIN(size_t, position + 8, pos_end - kMargin); in CreateBackwardReferences()
/third_party/skia/third_party/externals/brotli/c/enc/
H A Dbackward_references_inc.h139 const size_t kMargin = in CreateBackwardReferences() local
142 BROTLI_MIN(size_t, position + 16, pos_end - kMargin); in CreateBackwardReferences()
148 const size_t kMargin = in CreateBackwardReferences() local
151 BROTLI_MIN(size_t, position + 8, pos_end - kMargin); in CreateBackwardReferences()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
H A DvktDrawInvertedDepthRangesTests.cpp79 constexpr float kMargin = 0.2f; // Space between triangle and image border. See kVertices. member
88 Vec4(-1.0f + kMargin, -1.0f + kMargin, -0.2f, 1.0f), // 0-----2
89 Vec4(-1.0f + kMargin, 1.0f - kMargin + kDiagonalMargin, 0.0f, 1.0f), // | /
90 Vec4( 1.0f - kMargin + kDiagonalMargin, -1.0f + kMargin, 1.2f, 1.0f), // 1|/
377 const float p1f = fImageDim * kMargin / 2.0f; in generateReferenceImage()
378 const float p2f = fImageDim * (2.0f - kMargin + kDiagonalMargin) / 2.0f; in generateReferenceImage()
379 const float triangleSide = fImageDim * (2.0f - (2.0f*kMargin in generateReferenceImage()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/
H A DvktDrawInvertedDepthRangesTests.cpp79 constexpr float kMargin = 0.2f; // Space between triangle and image border. See kVertices. member
88 Vec4(-1.0f + kMargin, -1.0f + kMargin, -0.2f, 1.0f), // 0-----2
89 Vec4(-1.0f + kMargin, 1.0f - kMargin + kDiagonalMargin, 0.0f, 1.0f), // | /
90 Vec4( 1.0f - kMargin + kDiagonalMargin, -1.0f + kMargin, 1.2f, 1.0f), // 1|/
377 const float p1f = fImageDim * kMargin / 2.0f; in generateReferenceImage()
378 const float p2f = fImageDim * (2.0f - kMargin + kDiagonalMargin) / 2.0f; in generateReferenceImage()
379 const float triangleSide = fImageDim * (2.0f - (2.0f*kMargin in generateReferenceImage()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/wsi/
H A DvktWsiPresentIdWaitTests.cpp71 constexpr deUint64 kMargin = 100000000ull; member
75 // Calculate acceptable timeout range based on indicated timeout and taking into account kMargin.
82 deUint64 timeoutMin = ((timeout < kMargin) ? 0ull : (timeout - kMargin)); in calcTimeoutRange()
83 deUint64 timeoutMax = ((kUnsignedMax - timeout < kMargin) ? kUnsignedMax : timeout + kMargin); in calcTimeoutRange()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/wsi/
H A DvktWsiPresentIdWaitTests.cpp71 constexpr deUint64 kMargin = 100000000ull; member
75 // Calculate acceptable timeout range based on indicated timeout and taking into account kMargin.
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/
H A Djson_project_writer.cc296 static const char kMargin[17] = " "; in AddMargin() local
300 out_.Append(kMargin, span); in AddMargin()

Completed in 19 milliseconds