Home
last modified time | relevance | path

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

/external/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.cpp1003 static constexpr SkPoint kPts[] = { {0.f, 0.f}, {0.25f * kTileWidth, 0.25f * kTileHeight} }; in make_shader_renderers() local
1005 auto gradient = SkGradientShader::MakeLinear(kPts, kColors, nullptr, 2, in make_shader_renderers()
/external/libwebm/testing/
Dvideo_frame_tests.cc14 const std::int64_t kPts = 12345; variable
52 libwebm::VideoFrame keyframe(kKeyframe, kPts, kCodec); in TEST()
54 EXPECT_EQ(kPts, keyframe.nanosecond_pts()); in TEST()
63 EXPECT_EQ(kPts, keyframe.nanosecond_pts()); in TEST()
68 EXPECT_TRUE(keyframe.Init(kSize, kPts + 1, libwebm::VideoFrame::kVP9)); in TEST()
71 EXPECT_NE(kPts, keyframe.nanosecond_pts()); in TEST()
/external/skqp/bench/
DClearBench.cpp24 static const SkPoint kPts[] = {{0, 0}, {10, 10}}; in make_shader() local
26 return SkGradientShader::MakeLinear(kPts, kColors, nullptr, 2, SkShader::kClamp_TileMode); in make_shader()
/external/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()
/external/skqp/gm/
Drrectclipdrawpaint.cpp36 constexpr SkPoint kPts[] = {{0.f, 0.f}, {256.f, 256.f}}; variable
38 p.setShader(SkGradientShader::MakeLinear(kPts, kColors1, nullptr, 2,
Dstroke_rect_shader.cpp18 constexpr SkPoint kPts[] {{kRect.fLeft, kRect.fTop}, {kRect.fRight, kRect.fBottom}}; variable
21 sk_sp<SkShader> shader = SkGradientShader::MakeLinear(kPts, kColors, nullptr, 2,
Dmodecolorfilters.cpp20 constexpr SkPoint kPts[] = {{0, 0}, {1, 1}}; in make_color_shader() local
23 return SkGradientShader::MakeLinear(kPts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_color_shader()
Dcoloremoji.cpp26 constexpr SkPoint kPts[] = { { 0, 0 }, { 32, 32 } }; in MakeLinear() local
29 return SkGradientShader::MakeLinear(kPts, kColors, kPos, SK_ARRAY_COUNT(kColors), in MakeLinear()
Dgradients_no_texture.cpp95 constexpr SkPoint kPts[2] = { { 0, 0 }, in onDraw() local
109 paint.setShader(gGradMakers[j](kPts, gGradData[i], kTM)); in onDraw()
/external/skia/src/core/
DSkPathBuilder.cpp648 const int kPts = 4; // moveTo + 3 lines in addRect() local
650 this->incReserve(kPts, kVerbs); in addRect()
664 const int kPts = 9; // moveTo + 4 conics(2 pts each) in addOval() local
666 this->incReserve(kPts, kVerbs); in addOval()
/external/skqp/tests/
DPathTest.cpp4143 const SkPoint kPts[] = {{4, 4}, {6, 6}, {8, 8}, {6, 8}, {4, 8}, {4, 6}, {4, 4}}; in test_contains() local
4144 p.moveTo(kPts[0]); in test_contains()
4145 for (int index = 1; index < (int) SK_ARRAY_COUNT(kPts); index += 2) { in test_contains()
4146 p.conicTo(kPts[index], kPts[index + 1], 0.5f); in test_contains()
4151 for (int index = 0; index < (int) SK_ARRAY_COUNT(kPts) - 2; index += 2) { in test_contains()
4152 SkConic conic(&kPts[index], 0.5f); in test_contains()
/external/skia/tests/
DPathTest.cpp4151 const SkPoint kPts[] = {{4, 4}, {6, 6}, {8, 8}, {6, 8}, {4, 8}, {4, 6}, {4, 4}}; in test_contains() local
4152 p.moveTo(kPts[0]); in test_contains()
4153 for (int index = 1; index < (int) SK_ARRAY_COUNT(kPts); index += 2) { in test_contains()
4154 p.conicTo(kPts[index], kPts[index + 1], 0.5f); in test_contains()
4159 for (int index = 0; index < (int) SK_ARRAY_COUNT(kPts) - 2; index += 2) { in test_contains()
4160 SkConic conic(&kPts[index], 0.5f); in test_contains()