Home
last modified time | relevance | path

Searched refs:sweep (Results 1 - 25 of 27) sorted by relevance

12

/third_party/skia/docs/examples/
H A DColor_Wheel.cpp13 SkPaint sweep; in REG_FIDDLE() local
19 sweep.setShader(SkGradientShader::MakeSweep(0, 0, kColors, nullptr, nullptr, in REG_FIDDLE()
21 sweep.setStyle(SkPaint::kStroke_Style); in REG_FIDDLE()
22 sweep.setStrokeWidth(stroke); in REG_FIDDLE()
23 sweep.setAntiAlias(true); in REG_FIDDLE()
24 canvas->drawCircle({0, 0}, (scale - stroke) * 0.5f, sweep); in REG_FIDDLE()
H A DPath_ArcSize.cpp10 for (auto sweep: { SkPathDirection::kCW, SkPathDirection::kCCW } ) { in REG_FIDDLE()
14 path.arcTo(70, 40, 30, arcSize, sweep, 156, 100); in REG_FIDDLE()
15 if (SkPathDirection::kCCW == sweep && SkPath::kLarge_ArcSize == arcSize) { in REG_FIDDLE()
H A DPath_arcTo_4.cpp10 for (auto sweep: { SkPathDirection::kCW, SkPathDirection::kCCW } ) { in REG_FIDDLE()
14 path.arcTo(70, 40, 30, arcSize, sweep, 120.1f, 50); in REG_FIDDLE()
15 if (SkPathDirection::kCCW == sweep && SkPath::kLarge_ArcSize == arcSize) { in REG_FIDDLE()
H A DPath_addArc.cpp9 for (auto sweep : { -450.f, -180.f, -90.f, 90.f, 180.f, 360.1f } ) { in REG_FIDDLE()
11 path.addArc({10, 10, 35, 45}, start, sweep); in REG_FIDDLE()
H A DBlendModes.cpp14 auto sweep = SkGradientShader::MakeSweep(128, 128, sweepColors, nullptr, 7, 0, &rotMtx); in REG_FIDDLE() local
16 auto comp = SkShaders::Blend(SkBlendMode::kModulate, std::move(rad), std::move(sweep)); in REG_FIDDLE()
/third_party/skia/tests/
H A DPathOpsAngleIdeas.cpp118 static void setQuadHullSweep(const SkDQuad& quad, SkDVector sweep[2]) { in setQuadHullSweep() argument
119 sweep[0] = quad[1] - quad[0]; in setQuadHullSweep()
120 sweep[1] = quad[2] - quad[0]; in setQuadHullSweep()
130 SkDVector sweep[2], tweep[2]; in checkParallel() local
131 setQuadHullSweep(quad1, sweep); in checkParallel()
142 double s0dt0 = sweep[0].dot(tweep[0]); in checkParallel()
144 double s0xt0 = sweep[0].crossCheck(tweep[0]); in checkParallel()
146 double sDist = sweep[0].length() * m; in checkParallel()
165 SkDVector sweep[2], tweep[2];
166 setQuadHullSweep(quad1, sweep);
211 double sweep = end - start; radianSweep() local
[all...]
H A DPathTest.cpp3743 static void check_oval_arc(skiatest::Reporter* reporter, SkScalar start, SkScalar sweep, in check_oval_arc() argument
3754 REPORTER_ASSERT(reporter, (SkPathDirection::kCW == d) == (sweep > 0.f)); in check_oval_arc()
3759 for (SkScalar sweep : {-720.f, -540.f, -360.f, 360.f, 432.f, 720.f}) { in test_arc_ovals()
3762 path.addArc(oval, start, sweep); in test_arc_ovals()
3766 check_oval_arc(reporter, start, sweep, path); in test_arc_ovals()
3775 path.addArc(oval, start + delta, sweep); in test_arc_ovals()
3776 check_oval_arc(reporter, start, sweep, path); in test_arc_ovals()
3925 for (float sweep = 359, delta = 0.5f; sweep != (float) (sweep in test_arcTo()
[all...]
/third_party/skia/samplecode/
H A DSampleArc.cpp46 void setSweep(SkScalar sweep) { in setSweep() argument
47 if (fSweep != sweep) { in setSweep()
48 fSweep = sweep; in setSweep()
95 static void DrawLabel(SkCanvas* canvas, const SkRect& rect, SkScalar start, SkScalar sweep) { in DrawLabel() argument
100 str.appendScalar(sweep); in DrawLabel()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libEGL/
H A DTexture.hpp35 virtual void sweep() = 0; // Garbage collect if no external references
43 sweep();
/third_party/skia/src/pathops/
H A DSkOpAngle.cpp337 const SkDVector* sweep, * tweep; in checkParallel() local
339 sweep = this->fPart.fSweep; in checkParallel()
342 sweep = &scratch[0]; in checkParallel()
350 double s0xt0 = sweep->crossCheck(*tweep); in checkParallel()
437 const SkDVector* sweep = this->fPart.fSweep; in convexHullOverlaps() local
439 double s0xs1 = sweep[0].crossCheck(sweep[1]); in convexHullOverlaps()
440 double s0xt0 = sweep[0].crossCheck(tweep[0]); in convexHullOverlaps()
441 double s1xt0 = sweep[1].crossCheck(tweep[0]); in convexHullOverlaps()
443 double s0xt1 = sweep[ in convexHullOverlaps()
1127 const SkDVector* sweep = fPart.fSweep; tangentsDiverge() local
[all...]
/third_party/skia/gm/
H A Dshallowgradient.cpp81 M(sweep, true)
86 M(sweep, false)
H A Daddarc.cpp219 SkScalar sweep = ccw ? end - start : start - end; in html_canvas_arc() local
221 path->arcTo(bounds, start, sweep, false); in html_canvas_arc()
223 path->addArc(bounds, start, sweep); in html_canvas_arc()
H A Dcirculararcs.cpp39 // Draws grid of arcs with different start/sweep angles in red and their complement arcs in in draw_arcs()
59 for (auto sweep : kSweeps) { in draw_arcs()
60 canvas->drawArc(kRect, start, sweep, useCenter, p0); in draw_arcs()
61 canvas->drawArc(kRect, start, -(360.f - sweep), useCenter, p1); in draw_arcs()
155 // no sweep in DEF_SIMPLE_GM()
169 // exactly 360 sweep in DEF_SIMPLE_GM()
171 // exactly -360 sweep in DEF_SIMPLE_GM()
173 // exactly 540 sweep in DEF_SIMPLE_GM()
175 // exactly -540 sweep in DEF_SIMPLE_GM()
177 // generic large sweep an in DEF_SIMPLE_GM()
[all...]
H A Dgradients.cpp930 // Checkerboard using a sweep gradient + picture shader. in DEF_SIMPLE_GM()
951 // Dartboard using sweep + radial. in DEF_SIMPLE_GM()
967 sk_sp<SkShader> sweep(SkShaders::Blend(SkBlendMode::kExclusion, sweep1, sweep2)); in DEF_SIMPLE_GM()
974 return SkShaders::Blend(SkBlendMode::kExclusion, sweep, in DEF_SIMPLE_GM()
/third_party/skia/src/utils/
H A DSkParsePath.cpp184 bool largeArc, sweep; in FromSVGString() local
191 && (data = find_flag(data, &sweep)) in FromSVGString()
195 (SkPathDirection) !sweep, points[0]); in FromSVGString()
/third_party/node/test/v8-updates/
H A Dtest-trace-gc-flag.js27 /\bMark-sweep\b/,
/third_party/skia/include/core/
H A DSkPath.h832 @param sweepAngle sweep, in degrees. Positive is clockwise; treated modulo 360
848 Arc sweep is always less than 180 degrees. If radius is zero, or if
875 Arc sweep is always less than 180 degrees. If radius is zero, or if
904 Arc sweep is always less than 360 degrees. arcTo() appends line to (x, y) if
910 arcTo() implements the functionality of SVG arc, although SVG sweep-flag value
911 is opposite the integer value of sweep; SVG sweep-flag uses 1 for clockwise,
918 @param sweep chooses clockwise or counterclockwise arc
924 SkPathDirection sweep, SkScalar x, SkScalar y);
932 Arc sweep i
949 arcTo(const SkPoint r, SkScalar xAxisRotate, ArcSize largeArc, SkPathDirection sweep, const SkPoint xy) arcTo() argument
[all...]
H A DSkPathBuilder.h104 @param sweepAngleDeg sweep, in degrees. Positive is clockwise; treated modulo 360
119 Arc sweep is always less than 180 degrees. If radius is zero, or if
143 Arc sweep is always less than 360 degrees. arcTo() appends line to xy if either
149 arcTo() implements the functionality of SVG arc, although SVG sweep-flag value is
150 opposite the integer value of sweep; SVG sweep-flag uses 1 for clockwise, while
156 @param sweep chooses clockwise or counterclockwise arc
160 SkPathBuilder& arcTo(SkPoint r, SkScalar xAxisRotate, ArcSize largeArc, SkPathDirection sweep,
174 @param sweepAngleDeg sweep, in degrees. Positive is clockwise; treated modulo 360
/third_party/skia/modules/pathkit/
H A Dpathkit_wasm_bindings.cpp315 const auto sweep = SkRadiansToDegrees(endAngle - startAngle) - 360 * ccw; in ApplyAddArc() local
316 temp.addArc(bounds, SkRadiansToDegrees(startAngle), sweep); in ApplyAddArc()
326 const auto sweep = SkRadiansToDegrees(endAngle - startAngle) - (360 * ccw); in ApplyEllipse() local
327 temp.addArc(bounds, SkRadiansToDegrees(startAngle), sweep); in ApplyEllipse()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
H A DTexture.h206 void sweep() override;
277 void sweep() override;
340 void sweep() override;
H A DTexture.cpp470 void Texture2D::sweep() in sweep() function in es2::Texture2D
967 void TextureCubeMap::sweep() in sweep() function in TextureCubeMap
1511 void Texture3D::sweep()
/third_party/skia/modules/canvaskit/
H A Dinterface.js172 var sweep = radiansToDegrees(endAngle - startAngle) - (360 * !!ccw);
174 temp.addArc(bounds, radiansToDegrees(startAngle), sweep);
195 // Arc sweep is always less than 360 degrees. arcTo() appends line to (x, y) if
201 // arcToRotated() implements the functionality of SVG arc, although SVG sweep-flag value
202 // is opposite the integer value of sweep; SVG sweep-flag uses 1 for clockwise,
217 // Arc sweep is always less than 180 degrees. If radius is zero, or if
H A Dcanvaskit_bindings.cpp239 auto sweep = ccw ? SkPathDirection::kCCW : SkPathDirection::kCW; in ApplyArcToArcSize() local
240 orig.arcTo(rx, ry, xAxisRotate, arcSize, sweep, x, y); in ApplyArcToArcSize()
246 auto sweep = ccw ? SkPathDirection::kCCW : SkPathDirection::kCW; in ApplyRArcToArcSize() local
247 orig.rArcTo(rx, ry, xAxisRotate, arcSize, sweep, dx, dy); in ApplyRArcToArcSize()
/third_party/skia/fuzz/
H A DFuzzCanvas.cpp1245 SkScalar start, sweep;
1247 fuzz->next(&r, &start, &sweep, &useCenter);
1248 canvas->drawArc(r, start, sweep, useCenter, paint);
/third_party/skia/src/core/
H A DSkPath.cpp867 // Return the unit vectors pointing at the start/stop points for the given start/sweep angles
879 /* If the sweep angle is nearly (but less than) 360, then due to precision in angles_to_unit_vectors()
1296 SkPathDirection sweep, SkScalar dx, SkScalar dy) { in rArcTo()
1299 return this->arcTo(rx, ry, xAxisRotate, largeArc, sweep, in rArcTo()
1295 rArcTo(SkScalar rx, SkScalar ry, SkScalar xAxisRotate, SkPath::ArcSize largeArc, SkPathDirection sweep, SkScalar dx, SkScalar dy) rArcTo() argument

Completed in 34 milliseconds

12