/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 | 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 | 144 constexpr SkScalar kRadius = 50.f; in onOnceBeforeDraw() local 145 const SkPoint center = { kRadius, kRadius }; in onOnceBeforeDraw() 150 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()
|