Home
last modified time | relevance | path

Searched refs:rad (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/third_party/skia/bench/
DBlurRectBench.cpp29 BlurRectBench(SkScalar rad) { in BlurRectBench() argument
30 fRadius = rad; in BlurRectBench()
79 BlurRectDirectBench(SkScalar rad) : INHERITED(rad) { in BlurRectDirectBench() argument
82 if (SkScalarFraction(rad) != 0) { in BlurRectDirectBench()
83 name.printf("blurrect_direct_%.2f", SkScalarToFloat(rad)); in BlurRectDirectBench()
85 name.printf("blurrect_direct_%d", SkScalarRoundToInt(rad)); in BlurRectDirectBench()
106 BlurRectSeparableBench(SkScalar rad) : INHERITED(rad) { } in BlurRectSeparableBench() argument
131 BlurRectBoxFilterBench(SkScalar rad) : INHERITED(rad) { in BlurRectBoxFilterBench() argument
134 if (SkScalarFraction(rad) != 0) { in BlurRectBoxFilterBench()
135 name.printf("blurrect_boxfilter_%.2f", SkScalarToFloat(rad)); in BlurRectBoxFilterBench()
[all …]
DPolyUtilsBench.cpp121 SkScalar rad = 0; in makePoly() local
124 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r1, c + SkScalarSin(rad) * r1); in makePoly()
125 rad += drad; in makePoly()
126 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r2, c + SkScalarSin(rad) * r2); in makePoly()
127 rad += drad; in makePoly()
146 SkScalar rad = 0; in makePoly() local
149 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
150 rad += drad; in makePoly()
170 SkScalar rad = -SK_ScalarPI / 2; in makePoly() local
174 rad += drad; in makePoly()
[all …]
DMorphologyBench.cpp36 MorphologyBench(SkScalar rad, MorphologyType style) in MorphologyBench() argument
38 fRadius = rad; in MorphologyBench()
40 const char* name = rad > 0 ? gStyleName[style] : "none"; in MorphologyBench()
41 if (SkScalarFraction(rad) != 0) { in MorphologyBench()
42 fName.printf("morph_%.2f_%s", SkScalarToFloat(rad), name); in MorphologyBench()
44 fName.printf("morph_%d_%s", SkScalarRoundToInt(rad), name); in MorphologyBench()
DBlurBench.cpp37 BlurBench(SkScalar rad, SkBlurStyle bs) { in BlurBench() argument
38 fRadius = rad; in BlurBench()
40 const char* name = rad > 0 ? gStyleName[bs] : "none"; in BlurBench()
42 if (SkScalarFraction(rad) != 0) { in BlurBench()
43 fName.printf("blur_%.2f_%s_%s", SkScalarToFloat(rad), name, quality); in BlurBench()
45 fName.printf("blur_%d_%s_%s", SkScalarRoundToInt(rad), name, quality); in BlurBench()
/third_party/flutter/skia/bench/
DBlurRectBench.cpp29 BlurRectBench(SkScalar rad) { in BlurRectBench() argument
30 fRadius = rad; in BlurRectBench()
79 BlurRectDirectBench(SkScalar rad) : INHERITED(rad) { in BlurRectDirectBench() argument
82 if (SkScalarFraction(rad) != 0) { in BlurRectDirectBench()
83 name.printf("blurrect_direct_%.2f", SkScalarToFloat(rad)); in BlurRectDirectBench()
85 name.printf("blurrect_direct_%d", SkScalarRoundToInt(rad)); in BlurRectDirectBench()
106 BlurRectSeparableBench(SkScalar rad) : INHERITED(rad) { } in BlurRectSeparableBench() argument
131 BlurRectBoxFilterBench(SkScalar rad) : INHERITED(rad) { in BlurRectBoxFilterBench() argument
134 if (SkScalarFraction(rad) != 0) { in BlurRectBoxFilterBench()
135 name.printf("blurrect_boxfilter_%.2f", SkScalarToFloat(rad)); in BlurRectBoxFilterBench()
[all …]
DPolyUtilsBench.cpp120 SkScalar rad = 0; in makePoly() local
123 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r1, c + SkScalarSin(rad) * r1); in makePoly()
124 rad += drad; in makePoly()
125 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r2, c + SkScalarSin(rad) * r2); in makePoly()
126 rad += drad; in makePoly()
145 SkScalar rad = 0; in makePoly() local
148 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
149 rad += drad; in makePoly()
169 SkScalar rad = -SK_ScalarPI / 2; in makePoly() local
173 rad += drad; in makePoly()
[all …]
DMorphologyBench.cpp36 MorphologyBench(SkScalar rad, MorphologyType style) in MorphologyBench() argument
38 fRadius = rad; in MorphologyBench()
40 const char* name = rad > 0 ? gStyleName[style] : "none"; in MorphologyBench()
41 if (SkScalarFraction(rad) != 0) { in MorphologyBench()
42 fName.printf("morph_%.2f_%s", SkScalarToFloat(rad), name); in MorphologyBench()
44 fName.printf("morph_%d_%s", SkScalarRoundToInt(rad), name); in MorphologyBench()
DBlurBench.cpp37 BlurBench(SkScalar rad, SkBlurStyle bs) { in BlurBench() argument
38 fRadius = rad; in BlurBench()
40 const char* name = rad > 0 ? gStyleName[bs] : "none"; in BlurBench()
42 if (SkScalarFraction(rad) != 0) { in BlurBench()
43 fName.printf("blur_%.2f_%s_%s", SkScalarToFloat(rad), name, quality); in BlurBench()
45 fName.printf("blur_%d_%s_%s", SkScalarRoundToInt(rad), name, quality); in BlurBench()
/third_party/flutter/skia/tests/
DTracingTest.cpp118 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
119 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
129 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
130 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
131 TRACE_COUNTER1("skia", "cos", SkScalarCos(rad) * 1000.0f + 1000.0f); in test_trace_counters()
142 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
144 "sin", SkScalarSin(rad) * 1000.0f + 1000.0f, in test_trace_counters()
145 "cos", SkScalarCos(rad) * 1000.0f + 1000.0f); in test_trace_counters()
DRRectInPathTest.cpp179 const SkScalar rad = 12814; in test_tricky_radii() local
180 const SkVector vec[] = { { rad, rad }, { 0, rad }, { rad, rad }, { 0, rad } }; in test_tricky_radii()
204 const SkScalar rad = 40; in test_empty_crbug_458524() local
205 rr.setRectXY(bounds, rad, rad); in test_empty_crbug_458524()
420 static void set_radii(SkVector radii[4], int index, float rad) { in set_radii() argument
422 radii[index].set(rad, rad); in set_radii()
430 const float rad = 33436320; in test_skbug_3239() local
439 set_radii(radii, i, rad); in test_skbug_3239()
/third_party/skia/tests/
DTracingTest.cpp118 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
119 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
129 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
130 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
131 TRACE_COUNTER1("skia", "cos", SkScalarCos(rad) * 1000.0f + 1000.0f); in test_trace_counters()
142 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters() local
144 "sin", SkScalarSin(rad) * 1000.0f + 1000.0f, in test_trace_counters()
145 "cos", SkScalarCos(rad) * 1000.0f + 1000.0f); in test_trace_counters()
DRRectInPathTest.cpp175 const SkScalar rad = 12814; in test_tricky_radii() local
176 const SkVector vec[] = { { rad, rad }, { 0, rad }, { rad, rad }, { 0, rad } }; in test_tricky_radii()
200 const SkScalar rad = 40; in test_empty_crbug_458524() local
201 rr.setRectXY(bounds, rad, rad); in test_empty_crbug_458524()
416 static void set_radii(SkVector radii[4], int index, float rad) { in set_radii() argument
418 radii[index].set(rad, rad); in set_radii()
426 const float rad = 33436320; in test_skbug_3239() local
435 set_radii(radii, i, rad); in test_skbug_3239()
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/
DMatrix.java143 public Matrix rotateX(float rad) { in rotateX() argument
144 nRotate(this.mNativeInstance, 1, 0, 0, rad); in rotateX()
153 public Matrix rotateY(float rad) { in rotateY() argument
154 nRotate(this.mNativeInstance, 0, 1, 0, rad); in rotateY()
163 public Matrix rotateZ(float rad) { in rotateZ() argument
164 nRotate(this.mNativeInstance, 0, 0, 1, rad); in rotateZ()
173 public Matrix rotate(float x, float y, float z, float rad) { in rotate() argument
174 nRotate(this.mNativeInstance, x, y, z, rad); in rotate()
210 … private static native void nRotate(long mNativeInstance, float x, float y, float z, float rad); in nRotate() argument
/third_party/flutter/skia/src/sksl/
Dsksl_interp.inc16 float degrees(float rad) { return rad * 57.2957795; }
17 float2 degrees(float2 rad) { return rad * 57.2957795; }
18 float3 degrees(float3 rad) { return rad * 57.2957795; }
19 float4 degrees(float4 rad) { return rad * 57.2957795; }
/third_party/flutter/skia/src/gpu/ops/
DGrStrokeRectOp.cpp60 const SkScalar rad = SkScalarHalf(width); in init_nonaa_stroke_rect_strip() local
62 verts[0].set(rect.fLeft + rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
63 verts[1].set(rect.fLeft - rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
64 verts[2].set(rect.fRight - rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
65 verts[3].set(rect.fRight + rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
66 verts[4].set(rect.fRight - rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
67 verts[5].set(rect.fRight + rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
68 verts[6].set(rect.fLeft + rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
69 verts[7].set(rect.fLeft - rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
75 if (2*rad >= rect.width()) { in init_nonaa_stroke_rect_strip()
[all …]
/third_party/skia/src/gpu/ops/
DStrokeRectOp.cpp65 const SkScalar rad = SkScalarHalf(width); in init_nonaa_stroke_rect_strip() local
67 verts[0].set(rect.fLeft + rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
68 verts[1].set(rect.fLeft - rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
69 verts[2].set(rect.fRight - rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
70 verts[3].set(rect.fRight + rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
71 verts[4].set(rect.fRight - rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
72 verts[5].set(rect.fRight + rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
73 verts[6].set(rect.fLeft + rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
74 verts[7].set(rect.fLeft - rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
80 if (2*rad >= rect.width()) { in init_nonaa_stroke_rect_strip()
[all …]
/third_party/flutter/skia/gm/
Dbackdrop.cpp26 static sk_sp<SkShader> make_shader(SkScalar cx, SkScalar cy, SkScalar rad) { in make_shader() argument
43 const SkScalar cx = 128, cy = 128, rad = 100; in do_draw() local
45 p.setShader(make_shader(cx, cy, rad)); in do_draw()
47 canvas->drawCircle(cx, cy, rad, p); in do_draw()
/third_party/skia/gm/
Dbackdrop.cpp27 static sk_sp<SkShader> make_shader(SkScalar cx, SkScalar cy, SkScalar rad) { in make_shader() argument
44 const SkScalar cx = 128, cy = 128, rad = 100; in do_draw() local
46 p.setShader(make_shader(cx, cy, rad)); in do_draw()
48 canvas->drawCircle(cx, cy, rad, p); in do_draw()
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-number.c775 int32_t rad = ecma_number_to_int32 (radix_num); in ecma_number_parse_int() local
781 if (rad != 0) in ecma_number_parse_int()
784 if (rad < 2 || rad > 36) in ecma_number_parse_int()
789 else if (rad != 16) in ecma_number_parse_int()
797 rad = 10; in ecma_number_parse_int()
810 rad = 16; in ecma_number_parse_int()
836 current_number = rad; in ecma_number_parse_int()
839 if (!(current_number < rad)) in ecma_number_parse_int()
878 multiplier *= (ecma_number_t) rad; in ecma_number_parse_int()
/third_party/rust/crates/num-traits/src/
Dfloat.rs2250 for &(deg, rad) in &DEG_RAD_PAIRS { in convert_deg_rad()
2251 assert!((FloatCore::to_degrees(rad) - deg).abs() < 1e-6); in convert_deg_rad()
2252 assert!((FloatCore::to_radians(deg) - rad).abs() < 1e-6); in convert_deg_rad()
2254 let (deg, rad) = (deg as f32, rad as f32); in convert_deg_rad()
2255 assert!((FloatCore::to_degrees(rad) - deg).abs() < 1e-5); in convert_deg_rad()
2256 assert!((FloatCore::to_radians(deg) - rad).abs() < 1e-5); in convert_deg_rad()
2263 for &(deg, rad) in &DEG_RAD_PAIRS { in convert_deg_rad_std()
2266 assert!((Float::to_degrees(rad) - deg).abs() < 1e-6); in convert_deg_rad_std()
2267 assert!((Float::to_radians(deg) - rad).abs() < 1e-6); in convert_deg_rad_std()
2269 let (deg, rad) = (deg as f32, rad as f32); in convert_deg_rad_std()
[all …]
/third_party/skia/docs/examples/
DPath_incReserve.cpp10 SkScalar rad = SK_ScalarPI * 2 * i / sides; in draw() local
11 path->lineTo(SkScalarCos(rad) * size, SkScalarSin(rad) * size); in draw()
/third_party/flutter/skia/docs/examples/
DPath_incReserve.cpp10 SkScalar rad = SK_ScalarPI * 2 * i / sides; in draw() local
11 path->lineTo(SkScalarCos(rad) * size, SkScalarSin(rad) * size); in draw()
/third_party/cups-filters/filter/pdftopdf/
Dqpdf_pdftopdf.cc147 Matrix &Matrix::rotate(double rad) // {{{ in rotate() argument
151 tmp.ctm[0]=cos(rad); in rotate()
152 tmp.ctm[1]=sin(rad); in rotate()
153 tmp.ctm[2]=-sin(rad); in rotate()
154 tmp.ctm[3]=cos(rad); in rotate()
/third_party/python/Lib/turtledemo/
Dfractalcurves.py47 def fractalgon(self, n, rad, lev, dir): argument
52 edge = 2 * rad * math.sin(math.pi / n)
54 self.fd(rad)
62 self.bk(rad)
/third_party/flutter/skia/samplecode/
DSampleTextEffects.cpp101 SkScalar rad = 3 + SkIntToScalar(4) * (1 - interp); in makepe() local
102 lattice.setScale(rad*2, rad*2, 0, 0); in makepe()
104 return sk_make_sp<Dot2DPathEffect>(rad, lattice, pts); in makepe()

12345678910>>...14