Disable GPU path for lighting filters, due to Windows weirdness. Unreviewed.
git-svn-id: http://skia.googlecode.com/svn/trunk@4547 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp
index 7ba425d..ed64489 100644
--- a/src/effects/SkLightingImageFilter.cpp
+++ b/src/effects/SkLightingImageFilter.cpp
@@ -776,11 +776,15 @@
}
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::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
}
///////////////////////////////////////////////////////////////////////////////