/external/skqp/gm/ |
D | strokedlines.cpp | 19 constexpr int kRadius = 40; // radius of the snowflake variable 29 sin *= kRadius / 2.0f; in draw_fins() 30 cos *= kRadius / 2.0f; in draw_fins() 39 sin *= kRadius / 2.0f; in draw_fins() 40 cos *= kRadius / 2.0f; in draw_fins() 51 canvas->clipRect(SkRect::MakeLTRB(-kRadius-kPad, -kRadius-kPad, kRadius+kPad, kRadius+kPad)); in draw_snowflake() 56 sin *= kRadius; in draw_snowflake() 57 cos *= kRadius; in draw_snowflake() 76 canvas->translate(kRadius+kPad, 0.0f); in draw_row() 91 canvas->translate(2*(kRadius+kPad), 0.0f); in draw_row() [all …]
|
D | tallstretchedbitmaps.cpp | 17 constexpr int kRadius = 22; in make_bm() local 24 int count = (height / (2 * kRadius + kMargin)); in make_bm() 25 height = count * (2 * kRadius + kMargin); in make_bm() 27 bm->allocN32Pixels(2 * (kRadius + kMargin), height); in make_bm() 38 SkIRect subRect = SkIRect::MakeXYWH(0, i * (kMargin + 2 * kRadius), in make_bm() 39 2 * kRadius + kMargin, 2 * kRadius + kMargin); in make_bm() 42 canvas.translate(kMargin + kRadius, kMargin + kRadius); in make_bm() 49 SkScalar radius = kRadius - kThickness / 2; in make_bm()
|
D | blurignorexform.cpp | 66 static const SkScalar kRadius = 20.0f; in onDraw() local 68 SkRect rect = SkRect::MakeXYWH(coord - kRadius , coord - kRadius, in onDraw() 69 2 * kRadius, 2 * kRadius); in onDraw() 70 SkRRect rrect = SkRRect::MakeRectXY(rect, kRadius/2.0f, kRadius/2.0f); in onDraw() 77 canvas->drawCircle(coord, coord, kRadius, paint); in onDraw()
|
D | dashcircle.cpp | 137 static constexpr SkScalar kRadius = 20.f; in onDraw() local 140 static constexpr SkRect kCircle = {-kRadius, -kRadius, kRadius, kRadius}; in onDraw() 142 static constexpr SkScalar kThinRadius = kRadius * 1.5; in onDraw() 151 static constexpr SkScalar kCircumference = kRadius * kTau; in onDraw()
|
D | convexpolyclip.cpp | 109 constexpr SkScalar kRadius = 45.f; in onOnceBeforeDraw() local 110 const SkPoint center = { kRadius, kRadius }; in onOnceBeforeDraw() 115 point.scale(kRadius); in onOnceBeforeDraw() 126 scaleM.setScale(1.1f, 0.4f, kRadius, kRadius); in onOnceBeforeDraw()
|
D | convexpolyeffect.cpp | 138 constexpr SkScalar kRadius = 50.f; in onOnceBeforeDraw() local 139 const SkPoint center = { kRadius, kRadius }; in onOnceBeforeDraw() 144 point.scale(kRadius); in onOnceBeforeDraw()
|
D | hairlines.cpp | 30 kRadius = 40, in onOnceBeforeDraw() enumerator 34 SkScalar x = kRadius * SkScalarCos(angle); in onOnceBeforeDraw() 35 SkScalar y = kRadius * SkScalarSin(angle); in onOnceBeforeDraw()
|
D | gradients.cpp | 626 const SkScalar kRadius = 3000; in onOnceBeforeDraw() local 628 fShader = SkGradientShader::MakeRadial(center, kRadius, gColors, nullptr, 2, in onOnceBeforeDraw() 661 const SkScalar kRadius = 250; in onOnceBeforeDraw() local 665 fShader = SkGradientShader::MakeRadial(center, kRadius, colors, pos, in onOnceBeforeDraw()
|
/external/skia/gm/ |
D | strokedlines.cpp | 35 constexpr int kRadius = 40; // radius of the snowflake variable 46 sin *= kRadius / 2.0f; in draw_fins() 47 cos *= kRadius / 2.0f; in draw_fins() 57 sin *= kRadius / 2.0f; in draw_fins() 58 cos *= kRadius / 2.0f; in draw_fins() 69 canvas->clipRect(SkRect::MakeLTRB(-kRadius-kPad, -kRadius-kPad, kRadius+kPad, kRadius+kPad)); in draw_snowflake() 75 sin *= kRadius; in draw_snowflake() 76 cos *= kRadius; in draw_snowflake() 95 canvas->translate(kRadius+kPad, 0.0f); in draw_row() 110 canvas->translate(2*(kRadius+kPad), 0.0f); in draw_row() [all …]
|
D | tallstretchedbitmaps.cpp | 22 constexpr int kRadius = 22; 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() 54 SkScalar radius = kRadius - kThickness / 2; in make_bm()
|
D | circulararcs.cpp | 268 static constexpr SkScalar kRadius = 40.f; variable 274 matrices.push_back().setRotate(kRadius, kRadius, 45.f); 276 matrices.push_back().setAll(-1, 0, 2*kRadius, 280 0, -1, 2*kRadius, 283 0, -1, 2*kRadius, 285 matrices.push_back().setAll( 0, -1, 2*kRadius, 286 -1, 0, 2*kRadius, 288 matrices.push_back().setAll( 0, -1, 2*kRadius, 295 -1, 0, 2*kRadius, 301 tinyCW.setRotate(0.001f, kRadius, kRadius); [all …]
|
D | blurignorexform.cpp | 76 static const SkScalar kRadius = 20.0f; in onDraw() local 78 SkRect rect = SkRect::MakeXYWH(coord - kRadius , coord - kRadius, in onDraw() 79 2 * kRadius, 2 * kRadius); in onDraw() 80 SkRRect rrect = SkRRect::MakeRectXY(rect, kRadius/2.0f, kRadius/2.0f); in onDraw() 87 canvas->drawCircle(coord, coord, kRadius, paint); in onDraw()
|
D | dashcircle.cpp | 148 static constexpr SkScalar kRadius = 20.f; in onDraw() local 151 static constexpr SkRect kCircle = {-kRadius, -kRadius, kRadius, kRadius}; in onDraw() 153 static constexpr SkScalar kThinRadius = kRadius * 1.5; in onDraw() 162 static constexpr SkScalar kCircumference = kRadius * kTau; in onDraw()
|
D | convexpolyclip.cpp | 125 constexpr SkScalar kRadius = 45.f; in onOnceBeforeDraw() local 126 const SkPoint center = { kRadius, kRadius }; in onOnceBeforeDraw() 130 point.scale(kRadius); in onOnceBeforeDraw() 141 scaleM.setScale(1.1f, 0.4f, kRadius, kRadius); in onOnceBeforeDraw()
|
D | convexpolyeffect.cpp | 70 constexpr SkScalar kRadius = 50.f; in onOnceBeforeDraw() local 71 const SkPoint center = { kRadius, kRadius }; in onOnceBeforeDraw() 75 point.scale(kRadius); in onOnceBeforeDraw()
|
D | hairlines.cpp | 38 kRadius = 40, in onOnceBeforeDraw() enumerator 42 SkScalar x = kRadius * SkScalarCos(angle); in onOnceBeforeDraw() 43 SkScalar y = kRadius * SkScalarSin(angle); in onOnceBeforeDraw()
|
D | gradients.cpp | 603 const SkScalar kRadius = 3000; in onOnceBeforeDraw() local 605 fShader = SkGradientShader::MakeRadial(center, kRadius, gColors, nullptr, 2, in onOnceBeforeDraw() 638 const SkScalar kRadius = 250; in onOnceBeforeDraw() local 642 fShader = SkGradientShader::MakeRadial(center, kRadius, colors, pos, in onOnceBeforeDraw()
|
/external/tensorflow/tensorflow/lite/experimental/ruy/ |
D | test.h | 1980 static constexpr int kRadius = 20; 1981 int first_row = std::max(0, center_row - kRadius); 1982 int last_row = std::min(matrix.layout.rows - 1, center_row + kRadius); 1983 int first_col = std::max(0, center_col - kRadius); 1984 int last_col = std::min(matrix.layout.cols - 1, center_col + kRadius);
|
/external/skia/tests/ |
D | ImageFilterTest.cpp | 581 static const int kRadius = 8; in test_morphology_radius_with_mirror_ctm() local 583 sk_sp<SkImageFilter> filter(SkImageFilters::Dilate(kRadius, kRadius, nullptr)); in test_morphology_radius_with_mirror_ctm()
|