aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/LightingBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/LightingBench.cpp')
-rw-r--r--bench/LightingBench.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/bench/LightingBench.cpp b/bench/LightingBench.cpp
index bbe0af343c..a924f4a9ce 100644
--- a/bench/LightingBench.cpp
+++ b/bench/LightingBench.cpp
@@ -37,11 +37,10 @@ protected:
static SkPoint3 GetDistantDirection() {
static SkScalar azimuthRad = SkDegreesToRadians(SkIntToScalar(225));
static SkScalar elevationRad = SkDegreesToRadians(SkIntToScalar(5));
- static SkPoint3 distantDirection = SkPoint3::Make(SkScalarMul(SkScalarCos(azimuthRad),
- SkScalarCos(elevationRad)),
- SkScalarMul(SkScalarSin(azimuthRad),
- SkScalarCos(elevationRad)),
- SkScalarSin(elevationRad));
+ static SkPoint3 distantDirection = SkPoint3::Make(
+ SkScalarCos(azimuthRad) * SkScalarCos(elevationRad),
+ SkScalarSin(azimuthRad) * SkScalarCos(elevationRad),
+ SkScalarSin(elevationRad));
return distantDirection;
}