/third_party/skia/tests/ |
D | TracingTest.cpp | 81 gTracingTestWorkSink += SkScalarSin(i); in do_work() 119 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters() 130 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters() 144 "sin", SkScalarSin(rad) * 1000.0f + 1000.0f, in test_trace_counters()
|
/third_party/flutter/skia/tests/ |
D | TracingTest.cpp | 81 gTracingTestWorkSink += SkScalarSin(i); in do_work() 119 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters() 130 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters() 144 "sin", SkScalarSin(rad) * 1000.0f + 1000.0f, in test_trace_counters()
|
/third_party/flutter/skia/samplecode/ |
D | SampleLighting.cpp | 18 const SkVector3 dir = SkVector3::Make(SkScalarSin(angle)*SkScalarSin(SK_ScalarPI*0.25f), in create_lights() 19 SkScalarCos(angle)*SkScalarSin(SK_ScalarPI*0.25f), in create_lights()
|
D | SampleAndroidShadows.cpp | 284 SkScalarSin(radians), in onDrawContent() 285 SkTMax(1.0f, 16 + fZDelta) - SkScalarSin(radians)*pivot.fY); in onDrawContent() 299 zPlaneParams = SkPoint3::Make(-SkScalarSin(radians), in onDrawContent() 301 SkTMax(1.0f, 32 + fZDelta) + SkScalarSin(radians)*pivot.fX); in onDrawContent() 314 zPlaneParams = SkPoint3::Make(-SkScalarSin(radians), in onDrawContent() 316 SkTMax(1.0f, 8 + fZDelta) + SkScalarSin(radians)*pivot.fX); in onDrawContent()
|
/third_party/flutter/skia/bench/ |
D | PolyUtilsBench.cpp | 123 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r1, c + SkScalarSin(rad) * r1); in makePoly() 125 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r2, c + SkScalarSin(rad) * r2); in makePoly() 148 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly() 174 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly() 197 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly() 222 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
|
D | LightingBench.cpp | 42 SkScalarSin(azimuthRad) * SkScalarCos(elevationRad), in GetDistantDirection() 43 SkScalarSin(elevationRad)); in GetDistantDirection()
|
/third_party/skia/bench/ |
D | PolyUtilsBench.cpp | 124 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r1, c + SkScalarSin(rad) * r1); in makePoly() 126 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r2, c + SkScalarSin(rad) * r2); in makePoly() 149 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly() 175 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly() 198 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly() 223 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
|
D | LightingBench.cpp | 42 SkScalarSin(azimuthRad) * SkScalarCos(elevationRad), in GetDistantDirection() 43 SkScalarSin(elevationRad)); in GetDistantDirection()
|
/third_party/skia/samplecode/ |
D | SampleAndroidShadows.cpp | 283 SkScalarSin(radians), in onDrawContent() 284 std::max(1.0f, 16 + fZDelta) - SkScalarSin(radians)*pivot.fY); in onDrawContent() 298 zPlaneParams = SkPoint3::Make(-SkScalarSin(radians), in onDrawContent() 300 std::max(1.0f, 32 + fZDelta) + SkScalarSin(radians)*pivot.fX); in onDrawContent() 313 zPlaneParams = SkPoint3::Make(-SkScalarSin(radians), in onDrawContent() 315 std::max(1.0f, 8 + fZDelta) + SkScalarSin(radians)*pivot.fX); in onDrawContent()
|
/third_party/skia/docs/examples/ |
D | SkPath_arcto_conic_parametric.cpp | 45 r * SkScalarSin(SkDegreesToRadians(startAngle))}; in draw() 48 d * SkScalarSin(SkDegreesToRadians(middleAngle))}; in draw() 50 r * SkScalarSin(SkDegreesToRadians(finalAngle))}; in draw()
|
D | SkPath_arcto_conic_parametric2.cpp | 63 r * SkScalarSin(SkDegreesToRadians(startAngle))}; in draw() 66 d * SkScalarSin(SkDegreesToRadians(middleAngle))}; in draw() 68 r * SkScalarSin(SkDegreesToRadians(finalAngle))}; in draw()
|
D | Path_rCubicTo.cpp | 13 SkScalar sx = SkScalarSin(i * SK_ScalarPI / 8), in draw()
|
D | Path_incReserve.cpp | 11 path->lineTo(SkScalarCos(rad) * size, SkScalarSin(rad) * size); in draw()
|
/third_party/flutter/skia/docs/examples/ |
D | ImageInfo_makeColorType.cpp | 12 int red = SkScalarRoundToInt(255 * SkScalarAbs(SkScalarSin((x * 4 + y) * 0.03f))); in draw() 14 int green = SkScalarRoundToInt(255 * SkScalarAbs(SkScalarSin((x * 2 + y) * 0.05f))); in draw()
|
D | ImageInfo_makeAlphaType.cpp | 12 int red = SkScalarRoundToInt(255 * SkScalarAbs(SkScalarSin((x * 4 + y) * 0.03f))); in draw() 14 int green = SkScalarRoundToInt(255 * SkScalarAbs(SkScalarSin((x * 2 + y) * 0.05f))); in draw()
|
D | Path_rCubicTo.cpp | 13 SkScalar sx = SkScalarSin(i * SK_ScalarPI / 8), in draw()
|
D | Path_incReserve.cpp | 11 path->lineTo(SkScalarCos(rad) * size, SkScalarSin(rad) * size); in draw()
|
/third_party/skia/gm/ |
D | strokedlines.cpp | 44 sin = SkScalarSin(angle + (SK_ScalarPI/4)); in draw_fins() 55 sin = SkScalarSin(angle - (SK_ScalarPI/4)); in draw_fins() 73 sin = SkScalarSin(angle); in draw_snowflake()
|
D | hairlines.cpp | 43 SkScalar y = kRadius * SkScalarSin(angle); in onOnceBeforeDraw() 131 kRad * SkScalarSin(SkDegreesToRadians(kStartAngle)) }; in onOnceBeforeDraw() 134 kRad * SkScalarSin(SkDegreesToRadians(kStartAngle + kSweepAngle)) }; in onOnceBeforeDraw()
|
D | crbug_1086705.cpp | 27 100.f + 2.f * SkScalarSin(angleRads)};
|
/third_party/flutter/skia/gm/ |
D | strokedlines.cpp | 44 sin = SkScalarSin(angle + (SK_ScalarPI/4)); in draw_fins() 55 sin = SkScalarSin(angle - (SK_ScalarPI/4)); in draw_fins() 73 sin = SkScalarSin(angle); in draw_snowflake()
|
D | hairlines.cpp | 43 SkScalar y = kRadius * SkScalarSin(angle); in onOnceBeforeDraw() 161 kRad * SkScalarSin(SkDegreesToRadians(kStartAngle)) }; in onOnceBeforeDraw() 164 kRad * SkScalarSin(SkDegreesToRadians(kStartAngle + kSweepAngle)) }; in onOnceBeforeDraw()
|
D | lighting.cpp | 72 SkScalar sinAzimuth = SkScalarSin(SkDegreesToRadians(fAzimuth)), in onDraw() 88 SkScalarSin(elevationRad)); in onDraw()
|
/third_party/skia/include/core/ |
D | SkScalar.h | 44 #define SkScalarSin(radians) (float)sk_float_sin(radians) macro 149 float v = SkScalarSin(radians); in SkScalarSinSnapToZero()
|
/third_party/flutter/skia/include/core/ |
D | SkScalar.h | 44 #define SkScalarSin(radians) (float)sk_float_sin(radians) macro 162 float v = SkScalarSin(radians); in SkScalarSinSnapToZero()
|