aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-11 18:47:11 +0000
committerGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-11 18:47:11 +0000
commita2fdb338c72ce3b9ffda4c1012e485a390f913ee (patch)
treed7744ac6fbb5c444066a3451ed56b02504113c7f /src/effects
parentbca1c5de48f45a8c73dff00e60c4fa1821e2f79d (diff)
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
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/SkLightingImageFilter.cpp8
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
}
///////////////////////////////////////////////////////////////////////////////