aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleShadowUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleShadowUtils.cpp')
-rwxr-xr-xsamplecode/SampleShadowUtils.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/samplecode/SampleShadowUtils.cpp b/samplecode/SampleShadowUtils.cpp
index 6d047be93d..e3838116f2 100755
--- a/samplecode/SampleShadowUtils.cpp
+++ b/samplecode/SampleShadowUtils.cpp
@@ -126,16 +126,12 @@ protected:
if (fUseAlt) {
flags |= SkShadowFlags::kGeometricOnly_ShadowFlag;
}
- //SkShadowUtils::DrawShadow(canvas, path,
- // zValue,
- // lightPos, lightWidth,
- // ambientAlpha, spotAlpha, SK_ColorBLACK, flags);
- SkShadowUtils::DrawUncachedShadow(canvas, path, zPlaneParams,
- lightPos, lightWidth,
- ambientAlpha, 0, SK_ColorRED, flags);
- SkShadowUtils::DrawUncachedShadow(canvas, path, zPlaneParams,
- lightPos, lightWidth,
- 0, spotAlpha, SK_ColorBLUE, flags);
+ SkShadowUtils::DrawShadow(canvas, path, zPlaneParams,
+ lightPos, lightWidth,
+ ambientAlpha, 0, SK_ColorRED, flags);
+ SkShadowUtils::DrawShadow(canvas, path, zPlaneParams,
+ lightPos, lightWidth,
+ 0, spotAlpha, SK_ColorBLUE, flags);
if (fShowObject) {
canvas->drawPath(path, paint);