Home
last modified time | relevance | path

Searched refs:kPts (Results 1 – 19 of 19) sorted by relevance

/third_party/flutter/skia/gm/
Demptypath.cpp122 static constexpr SkPoint kPts[kPtsCount] = { variable
129 for (SkPoint p : kPts) { in make_path_move()
135 for (SkPoint p : kPts) { in make_path_move_close()
142 for (SkPoint p : kPts) { in make_path_move_line()
149 path->moveTo(kPts[0]); in make_path_move_mix()
150 path->moveTo(kPts[1]); path->close(); in make_path_move_mix()
151 path->moveTo(kPts[2]); path->lineTo(kPts[2]); in make_path_move_mix()
180 canvas->drawPoints(SkCanvas::kPoints_PointMode, kPtsCount, kPts, dotPaint); in onDraw()
Drrectclipdrawpaint.cpp44 constexpr SkPoint kPts[] = {{0.f, 0.f}, {256.f, 256.f}}; variable
46 p.setShader(SkGradientShader::MakeLinear(kPts, kColors1, nullptr, 2, SkTileMode::kClamp));
Dstroke_rect_shader.cpp30 constexpr SkPoint kPts[] {{kRect.fLeft, kRect.fTop}, {kRect.fRight, kRect.fBottom}}; variable
33 sk_sp<SkShader> shader = SkGradientShader::MakeLinear(kPts, kColors, nullptr, 2,
Dmodecolorfilters.cpp34 constexpr SkPoint kPts[] = {{0, 0}, {1, 1}}; in make_color_shader() local
37 return SkGradientShader::MakeLinear(kPts, colors, nullptr, 2, SkTileMode::kClamp); in make_color_shader()
Dcoloremoji.cpp40 constexpr SkPoint kPts[] = { { 0, 0 }, { 32, 32 } }; in MakeLinear() local
43 return SkGradientShader::MakeLinear(kPts, kColors, kPos, SK_ARRAY_COUNT(kColors), in MakeLinear()
Dgradients_no_texture.cpp110 constexpr SkPoint kPts[2] = { { 0, 0 }, in onDraw() local
124 paint.setShader(gGradMakers[j](kPts, gGradData[i], kTM)); in onDraw()
Dcompositor_quads.cpp1000 static constexpr SkPoint kPts[] = { {0.f, 0.f}, {0.25f * kTileWidth, 0.25f * kTileHeight} }; in make_shader_renderers() local
1002 auto gradient = SkGradientShader::MakeLinear(kPts, kColors, nullptr, 2, in make_shader_renderers()
/third_party/skia/gm/
Demptypath.cpp122 static constexpr SkPoint kPts[kPtsCount] = { variable
130 for (SkPoint p : kPts) { in make_path_move()
138 for (SkPoint p : kPts) { in make_path_move_close()
146 for (SkPoint p : kPts) { in make_path_move_line()
153 return SkPathBuilder().moveTo(kPts[0]) in make_path_move_mix()
154 .moveTo(kPts[1]).close() in make_path_move_mix()
155 .moveTo(kPts[2]).lineTo(kPts[2]) in make_path_move_mix()
183 canvas->drawPoints(SkCanvas::kPoints_PointMode, kPtsCount, kPts, dotPaint); in onDraw()
Drrectclipdrawpaint.cpp44 constexpr SkPoint kPts[] = {{0.f, 0.f}, {256.f, 256.f}}; variable
46 p.setShader(SkGradientShader::MakeLinear(kPts, kColors1, nullptr, 2, SkTileMode::kClamp));
Dstroke_rect_shader.cpp30 constexpr SkPoint kPts[] {{kRect.fLeft, kRect.fTop}, {kRect.fRight, kRect.fBottom}}; variable
33 sk_sp<SkShader> shader = SkGradientShader::MakeLinear(kPts, kColors, nullptr, 2,
Dmodecolorfilters.cpp34 constexpr SkPoint kPts[] = {{0, 0}, {1, 1}}; in make_color_shader() local
37 return SkGradientShader::MakeLinear(kPts, colors, nullptr, 2, SkTileMode::kClamp); in make_color_shader()
Dcoloremoji.cpp40 constexpr SkPoint kPts[] = { { 0, 0 }, { 32, 32 } }; in MakeLinear() local
43 return SkGradientShader::MakeLinear(kPts, kColors, kPos, SK_ARRAY_COUNT(kColors), in MakeLinear()
Dgradients_no_texture.cpp110 constexpr SkPoint kPts[2] = { { 0, 0 }, in onDraw() local
124 paint.setShader(gGradMakers[j](kPts, gGradData[i], kTM)); in onDraw()
Dcompositor_quads.cpp1002 static constexpr SkPoint kPts[] = { {0.f, 0.f}, {0.25f * kTileWidth, 0.25f * kTileHeight} }; in make_shader_renderers() local
1004 auto gradient = SkGradientShader::MakeLinear(kPts, kColors, nullptr, 2, in make_shader_renderers()
/third_party/flutter/skia/bench/
DClearBench.cpp24 static const SkPoint kPts[] = {{0, 0}, {10, 10}}; in make_shader() local
26 return SkGradientShader::MakeLinear(kPts, kColors, nullptr, 2, SkTileMode::kClamp); in make_shader()
/third_party/skia/bench/
DClearBench.cpp24 static const SkPoint kPts[] = {{0, 0}, {10, 10}}; in make_shader() local
26 return SkGradientShader::MakeLinear(kPts, kColors, nullptr, 2, SkTileMode::kClamp); in make_shader()
/third_party/skia/src/core/
DSkPathBuilder.cpp665 const int kPts = 4; // moveTo + 3 lines in addRect() local
667 this->incReserve(kPts, kVerbs); in addRect()
681 const int kPts = 9; // moveTo + 4 conics(2 pts each) in addOval() local
683 this->incReserve(kPts, kVerbs); in addOval()
/third_party/flutter/skia/tests/
DPathTest.cpp4117 const SkPoint kPts[] = {{4, 4}, {6, 6}, {8, 8}, {6, 8}, {4, 8}, {4, 6}, {4, 4}}; in test_contains() local
4118 p.moveTo(kPts[0]); in test_contains()
4119 for (int index = 1; index < (int) SK_ARRAY_COUNT(kPts); index += 2) { in test_contains()
4120 p.conicTo(kPts[index], kPts[index + 1], 0.5f); in test_contains()
4125 for (int index = 0; index < (int) SK_ARRAY_COUNT(kPts) - 2; index += 2) { in test_contains()
4126 SkConic conic(&kPts[index], 0.5f); in test_contains()
/third_party/skia/tests/
DPathTest.cpp4183 const SkPoint kPts[] = {{4, 4}, {6, 6}, {8, 8}, {6, 8}, {4, 8}, {4, 6}, {4, 4}}; in test_contains() local
4184 p.moveTo(kPts[0]); in test_contains()
4185 for (int index = 1; index < (int) SK_ARRAY_COUNT(kPts); index += 2) { in test_contains()
4186 p.conicTo(kPts[index], kPts[index + 1], 0.5f); in test_contains()
4191 for (int index = 0; index < (int) SK_ARRAY_COUNT(kPts) - 2; index += 2) { in test_contains()
4192 SkConic conic(&kPts[index], 0.5f); in test_contains()