diff options
-rw-r--r-- | src/effects/SkLightingImageFilter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp index 7ba425d4b7..ed64489d87 100644 --- a/src/effects/SkLightingImageFilter.cpp +++ b/src/effects/SkLightingImageFilter.cpp @@ -776,11 +776,15 @@ bool SkDiffuseLightingImageFilter::onFilterImage(Proxy*, } bool SkDiffuseLightingImageFilter::asNewCustomStage(GrCustomStage** stage) const { +#if 0 if (stage) { SkScalar scale = SkScalarMul(surfaceScale(), SkIntToScalar(255)); *stage = new GrDiffuseLightingEffect(light(), scale, kd()); } return true; +#else + return false; +#endif } /////////////////////////////////////////////////////////////////////////////// @@ -839,11 +843,15 @@ bool SkSpecularLightingImageFilter::onFilterImage(Proxy*, } bool SkSpecularLightingImageFilter::asNewCustomStage(GrCustomStage** stage) const { +#if 0 if (stage) { SkScalar scale = SkScalarMul(surfaceScale(), SkIntToScalar(255)); *stage = new GrSpecularLightingEffect(light(), scale, ks(), shininess()); } return true; +#else + return false; +#endif } /////////////////////////////////////////////////////////////////////////////// |