Home
last modified time | relevance | path

Searched refs:points (Results 76 - 100 of 434) sorted by relevance

12345678910>>...18

/third_party/skia/docs/examples/
H A Dconvex_overstroke_linear_approx_curve.cpp19 SkPoint points[10]; in REG_FIDDLE() local
22 points[i] = SkPoint::Make(65 + 15 * cos(i * PI / 10), 50 - 15 * sin(i * PI / 10)); in REG_FIDDLE()
30 path.lineTo(points[i]); in REG_FIDDLE()
H A Dskpaint_shader.cpp6 SkPoint points[2] = {SkPoint::Make(0.0f, 0.0f), SkPoint::Make(256.0f, 256.0f)}; in REG_FIDDLE() local
9 paint.setShader(SkGradientShader::MakeLinear(points, colors, nullptr, 2, SkTileMode::kClamp, in REG_FIDDLE()
H A DPoint_length_2.cpp10 const SkPoint points[] = { { 90, 30 }, { 120, 150 }, { 150, 30 }, { 210, 90 } }; in REG_FIDDLE() local
12 for (auto point : points) { in REG_FIDDLE()
H A DPoint_Length.cpp10 const SkPoint points[] = { { 90, 30 }, { 120, 150 }, { 150, 30 }, { 210, 90 } }; in REG_FIDDLE() local
12 for (auto point : points) { in REG_FIDDLE()
H A DPoint_setLength_2.cpp9 const SkPoint points[] = { { 60, -110 }, { 90, 10 }, { 120, -110 }, { 180, -50 } }; in REG_FIDDLE() local
12 for (auto point : points) { in REG_FIDDLE()
H A DPoint_setLength.cpp9 const SkPoint points[] = { { 60, -110 }, { 90, 10 }, { 120, -110 }, { 180, -50 } }; in REG_FIDDLE() local
12 for (auto point : points) { in REG_FIDDLE()
H A DPoint_setNormalize.cpp9 const SkPoint points[] = { { 60, -110 }, { 90, 10 }, { 120, -110 }, { 180, -50 } }; in REG_FIDDLE() local
12 for (auto point : points) { in REG_FIDDLE()
H A DPoint_distanceToOrigin.cpp10 const SkPoint points[] = { { 60, -110 }, { 90, 10 }, { 120, -110 }, { 180, -50 } }; in REG_FIDDLE() local
13 for (auto point : points) { in REG_FIDDLE()
/base/sensors/miscdevice/utils/haptic_decoder/he_json/src/
H A Dhe_vibrator_decoder.cpp241 event.points.emplace_back(point); in ParseCurve()
298 int32_t pointNum = static_cast<int32_t>(event.points.size()); in CheckContinuousParameters()
300 MISC_HILOGE("The points size is out of range, size:%{public}d", pointNum); in CheckContinuousParameters()
303 if (event.points[0].time != 0 || event.points[0].intensity != 0) { in CheckContinuousParameters()
304 MISC_HILOGE("The fist curve point is invalivd, time %{public}d, insentsity %{public}d", event.points[0].time, in CheckContinuousParameters()
305 event.points[0].intensity); in CheckContinuousParameters()
308 if (event.points[pointNum - 1].time != event.duration || event.points[pointNum - 1].intensity != 0) { in CheckContinuousParameters()
310 event.points[pointNu in CheckContinuousParameters()
[all...]
/third_party/skia/gm/
H A Dp3.cpp194 // TODO(mtklein): sample and check the middle points of these gradients too. in DEF_SIMPLE_GM()
199 SkPoint points[] = {{10.5,10.5}, {69.5,69.5}}; in DEF_SIMPLE_GM() local
203 paint.setShader(SkGradientShader::MakeLinear(points, colors, p3, in DEF_SIMPLE_GM()
225 SkPoint points[] = {{10.5,10.5}, {69.5,69.5}}; in DEF_SIMPLE_GM() local
230 SkGradientShader::MakeLinear(points, colors, p3, in DEF_SIMPLE_GM()
254 SkPoint points[] = {{10.5,10.5}, {69.5,69.5}}; in DEF_SIMPLE_GM() local
258 paint.setShader(SkGradientShader::MakeLinear(points, colors, srgb, in DEF_SIMPLE_GM()
280 SkPoint points[] = {{10.5,10.5}, {69.5,69.5}}; in DEF_SIMPLE_GM() local
285 SkGradientShader::MakeLinear(points, colors, srgb, in DEF_SIMPLE_GM()
308 SkPoint points[] in DEF_SIMPLE_GM() local
[all...]
H A Dsharedcorners.cpp112 void drawTriangleBoxes(SkCanvas* canvas, const std::vector<SkPoint>& points, in drawTriangleBoxes() argument
118 path.moveTo(points[triangle[0]]); in drawTriangleBoxes()
119 path.lineTo(points[triangle[1]]); in drawTriangleBoxes()
120 path.lineTo(points[triangle[2]]); in drawTriangleBoxes()
/third_party/typescript/tests/baselines/reference/
H A DparserErrorRecoveryArrayLiteralExpression2.js2 var points = [-0.6961439251899719, 1.207661509513855, 0.19374050199985504, -0 variable
8 var points = [-0.6961439251899719, 1.207661509513855, 0.19374050199985504, -0, variable
/third_party/skia/src/xps/
H A DSkXPSDevice.cpp1092 const SkPoint points[4] = { in createXpsRect() local
1098 return this->createXpsQuad(points, stroke, fill, xpsRect); in createXpsRect()
1100 HRESULT SkXPSDevice::createXpsQuad(const SkPoint (&points)[4],
1104 XPS_POINT startPoint = xps_point(points[0]);
1119 SkScalarToFLOAT(points[1].fX), SkScalarToFLOAT(points[1].fY),
1120 SkScalarToFLOAT(points[2].fX), SkScalarToFLOAT(points[2].fY),
1121 SkScalarToFLOAT(points[3].fX), SkScalarToFLOAT(points[
1142 drawPoints(SkCanvas::PointMode mode, size_t count, const SkPoint points[], const SkPaint& paint) drawPoints() argument
1232 SkPoint points[4] = { internalDrawRect() local
1301 SkPoint points[4]; addXpsPathGeometry() local
[all...]
/third_party/skia/src/pathops/
H A DSkPathOpsTypes.h568 inline SkPath::Verb SkPathOpsPointsToVerb(int points) { in SkPathOpsPointsToVerb() argument
569 int verb = (1 << points) >> 1; in SkPathOpsPointsToVerb()
571 switch (points) { in SkPathOpsPointsToVerb()
583 int points = (int) verb - (((int) verb + 1) >> 2); in SkPathOpsVerbToPoints() local
586 case SkPath::kLine_Verb: SkASSERT(1 == points); break; in SkPathOpsVerbToPoints()
587 case SkPath::kQuad_Verb: SkASSERT(2 == points); break; in SkPathOpsVerbToPoints()
588 case SkPath::kConic_Verb: SkASSERT(2 == points); break; in SkPathOpsVerbToPoints()
589 case SkPath::kCubic_Verb: SkASSERT(3 == points); break; in SkPathOpsVerbToPoints()
593 return points; in SkPathOpsVerbToPoints()
/base/sensors/miscdevice/frameworks/js/napi/vibrator/src/
H A Dvibrator_js.cpp207 if (events[j].points != nullptr) { in ClearVibratorPattern()
208 free(events[j].points); in ClearVibratorPattern()
209 events[j].points = nullptr; in ClearVibratorPattern()
222 CHKCF(GetPropertyInt32(env, pointsElement, "time", point.time), "Get points time fail"); in ParseVibratorCurvePoint()
223 CHKCF(GetPropertyInt32(env, pointsElement, "intensity", point.intensity), "Get points intensity fail"); in ParseVibratorCurvePoint()
224 CHKCF(GetPropertyInt32(env, pointsElement, "frequency", point.frequency), "Get points frequency fail"); in ParseVibratorCurvePoint()
235 VibratorCurvePoint *points = in ParseVibratorCurvePointArray() local
237 if (points == nullptr) { in ParseVibratorCurvePointArray()
238 MISC_HILOGE("points is nullptr"); in ParseVibratorCurvePointArray()
242 if (!ParseVibratorCurvePoint(env, pointsArray, i, points[ in ParseVibratorCurvePointArray()
[all...]
/third_party/skia/third_party/externals/freetype/src/pshinter/
H A Dpshalgo.c38 #define COMPUTE_INFLEXS /* compute inflection points to optimize `S' */
925 /* compute all inflex points in a given glyph */
940 /* we need at least 4 points to create an inflection point */ in psh_glyph_compute_inflections()
1043 FT_FREE( glyph->points ); in psh_glyph_done()
1084 FT_Vector* vec = glyph->outline->points; in psh_glyph_load_points()
1085 PSH_Point point = glyph->points; in psh_glyph_load_points()
1119 PSH_Point point = glyph->points; in psh_glyph_save_points()
1120 FT_Vector* vec = glyph->outline->points; in psh_glyph_save_points()
1169 /* allocate and setup points + contours arrays */ in psh_glyph_init()
1170 if ( FT_NEW_ARRAY( glyph->points, outlin in psh_glyph_init()
1179 PSH_Point points = glyph->points; psh_glyph_init() local
1218 PSH_Point points = glyph->points; psh_glyph_init() local
1776 PSH_Point points = glyph->points; psh_glyph_interpolate_normal_points() local
[all...]
/third_party/skia/src/gpu/geometry/
H A DGrPathUtils.cpp66 uint32_t GrPathUtils::quadraticPointCount(const SkPoint points[], SkScalar tol) { in quadraticPointCount() argument
68 tolerance_to_wangs_precision(tol), points)); in quadraticPointCount()
75 SkPoint** points, in generateQuadraticPoints()
79 (*points)[0] = p2; in generateQuadraticPoints()
80 *points += 1; in generateQuadraticPoints()
91 uint32_t a = generateQuadraticPoints(p0, q[0], r, tolSqd, points, pointsLeft); in generateQuadraticPoints()
92 uint32_t b = generateQuadraticPoints(r, q[1], p2, tolSqd, points, pointsLeft); in generateQuadraticPoints()
96 uint32_t GrPathUtils::cubicPointCount(const SkPoint points[], SkScalar tol) { in cubicPointCount() argument
98 tolerance_to_wangs_precision(tol), points)); in cubicPointCount()
106 SkPoint** points, in generateCubicPoints()
71 generateQuadraticPoints(const SkPoint& p0, const SkPoint& p1, const SkPoint& p2, SkScalar tolSqd, SkPoint** points, uint32_t pointsLeft) generateQuadraticPoints() argument
101 generateCubicPoints(const SkPoint& p0, const SkPoint& p1, const SkPoint& p2, const SkPoint& p3, SkScalar tolSqd, SkPoint** points, uint32_t pointsLeft) generateCubicPoints() argument
[all...]
H A DGrPathUtils.h32 // We guarantee that no quad or cubic will ever produce more than this many points
44 uint32_t quadraticPointCount(const SkPoint points[], SkScalar tol);
46 // Returns the number of points actually written to 'points', will be <= to 'pointsLeft'
51 SkPoint** points,
57 uint32_t cubicPointCount(const SkPoint points[], SkScalar tol);
59 // Returns the number of points actually written to 'points', will be <= to 'pointsLeft'
65 SkPoint** points,
69 // quad. The matrix is determined by the control points o
[all...]
/third_party/mesa3d/src/amd/compiler/tests/
H A Dtest_isel.cpp94 layout(points) in;
95 layout(points, max_vertices = 1) out;
123 layout(points) in;
124 layout(points, max_vertices = 0) out;
/third_party/skia/platform_tools/android/skp_gen/
H A Dandroid_skp_capture.py27 def __init__(self, start, end, duration, points):
31 self.points = points
35 return device.drag(self.start, self.end, self.duration, self.points)
55 action_dict['points'])
/third_party/skia/third_party/externals/freetype/src/autofit/
H A Daflatin.c310 /* Find all blue zones. Flat segments give the reference points, */
427 FT_Vector* points; in af_latin_metrics_init_blues() local
429 FT_Pos best_y_extremum; /* same as points.y */ in af_latin_metrics_init_blues()
497 points = outline.points; in af_latin_metrics_init_blues()
519 /* attachment points that are way outside of the glyph's */ in af_latin_metrics_init_blues()
529 if ( best_point < 0 || points[pp].y > best_y ) in af_latin_metrics_init_blues()
532 best_y = points[pp].y; in af_latin_metrics_init_blues()
536 descender = FT_MIN( descender, points[pp].y + y_offset ); in af_latin_metrics_init_blues()
543 if ( best_point < 0 || points[p in af_latin_metrics_init_blues()
[all...]
/kernel/linux/linux-5.10/mm/
H A Doom_kill.c203 long points; in oom_badness() local
230 points = get_mm_rss(p->mm) + get_mm_counter(p->mm, MM_SWAPENTS) + in oom_badness()
236 points += adj; in oom_badness()
238 return points; in oom_badness()
311 long points; in oom_evaluate_task() local
337 points = LONG_MAX; in oom_evaluate_task()
341 points = oom_badness(task, oc->totalpages); in oom_evaluate_task()
342 if (points == LONG_MIN || points < oc->chosen_points) in oom_evaluate_task()
350 oc->chosen_points = points; in oom_evaluate_task()
[all...]
/third_party/libinput/tools/
H A Dlibinput-measure-touchpad-pressure.py113 self.points = []
128 self.points.append(touch)
151 return int(sum([p.pressure for p in self.points]) / len(self.points))
155 ps = sorted([p.pressure for p in self.points])
156 idx = int(len(self.points) / 2)
163 if not self.points:
202 self.points[-1].pressure,
/third_party/skia/bench/
H A DPatchBench.cpp45 const SkPoint points[SkPatchUtils::kNumCtrlPts] = { in setCubics() local
46 //top points in setCubics()
48 //right points in setCubics()
50 //bottom points in setCubics()
52 //left points in setCubics()
55 memcpy(fCubics, points, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint)); in setCubics()
169 const SkPoint points[SkPatchUtils::kNumCtrlPts] = { variable
170 //top points
172 //right points
174 //bottom points
195 const SkPoint points[SkPatchUtils::kNumCtrlPts] = { global() variable
221 const SkPoint points[SkPatchUtils::kNumCtrlPts] = { global() variable
[all...]
/third_party/skia/third_party/externals/freetype/src/base/
H A Dftstroke.c316 FT_Vector* points; member
344 if ( FT_RENEW_ARRAY( border->points, old_max, cur_max ) || in ft_stroke_border_grow()
374 border->points[start] = border->points[count]; in ft_stroke_border_close()
379 /* reverse the points */ in ft_stroke_border_close()
381 FT_Vector* vec1 = border->points + start + 1; in ft_stroke_border_close()
382 FT_Vector* vec2 = border->points + count - 1; in ft_stroke_border_close()
436 border->points[border->num_points - 1] = *to; in ft_stroke_border_lineto()
442 FT_IS_SMALL( border->points[border->num_points - 1].x - to->x ) && in ft_stroke_border_lineto()
443 FT_IS_SMALL( border->points[borde in ft_stroke_border_lineto()
[all...]

Completed in 19 milliseconds

12345678910>>...18