Index: gm/imagefiltersscaled.cpp |
diff --git a/gm/imagefiltersscaled.cpp b/gm/imagefiltersscaled.cpp |
index 9a80964a0e6e595777d60cb0c30a1634cc1ed4aa..e7a68d747d69b140872552e398e5d3daee57450d 100644 |
--- a/gm/imagefiltersscaled.cpp |
+++ b/gm/imagefiltersscaled.cpp |
@@ -16,6 +16,7 @@ |
#include "SkMorphologyImageFilter.h" |
#include "SkOffsetImageFilter.h" |
#include "SkPerlinNoiseShader.h" |
+#include "SkPoint3.h" |
#include "SkRectShaderImageFilter.h" |
#include "SkScalar.h" |
#include "gm.h" |
@@ -75,9 +76,11 @@ protected: |
SkAutoTUnref<SkShader> noise(SkPerlinNoiseShader::CreateFractalNoise( |
SkDoubleToScalar(0.1), SkDoubleToScalar(0.05), 1, 0)); |
- SkPoint3 pointLocation(0, 0, SkIntToScalar(10)); |
- SkPoint3 spotLocation(SkIntToScalar(-10), SkIntToScalar(-10), SkIntToScalar(20)); |
- SkPoint3 spotTarget(SkIntToScalar(40), SkIntToScalar(40), 0); |
+ SkPoint3 pointLocation = SkPoint3::Make(0, 0, SkIntToScalar(10)); |
+ SkPoint3 spotLocation = SkPoint3::Make(SkIntToScalar(-10), |
+ SkIntToScalar(-10), |
+ SkIntToScalar(20)); |
+ SkPoint3 spotTarget = SkPoint3::Make(SkIntToScalar(40), SkIntToScalar(40), 0); |
SkScalar spotExponent = SK_Scalar1; |
SkScalar cutoffAngle = SkIntToScalar(15); |
SkScalar kd = SkIntToScalar(2); |