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
This commit is contained in:
parent
bca1c5de48
commit
a2fdb338c7
@ -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
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user