Index: src/animator/SkDrawEmboss.cpp |
=================================================================== |
--- src/animator/SkDrawEmboss.cpp (revision 10932) |
+++ src/animator/SkDrawEmboss.cpp (working copy) |
@@ -12,22 +12,23 @@ |
#if SK_USE_CONDENSED_INFO == 0 |
const SkMemberInfo SkDrawEmboss::fInfo[] = { |
- SK_MEMBER(ambient, Float), |
- SK_MEMBER_ARRAY(direction, Float), |
- SK_MEMBER(radius, Float), |
- SK_MEMBER(specular, Float) |
+ SK_MEMBER(fAmbient, Float), |
+ SK_MEMBER_ARRAY(fDirection, Float), |
+ SK_MEMBER(fSigma, Float), |
+ SK_MEMBER(fSpecular, Float) |
}; |
#endif |
DEFINE_GET_MEMBER(SkDrawEmboss); |
-SkDrawEmboss::SkDrawEmboss() : radius(-1) { |
- direction.setCount(3); |
+SkDrawEmboss::SkDrawEmboss() : fSigma(-1) { |
+ fDirection.setCount(3); |
} |
SkMaskFilter* SkDrawEmboss::getMaskFilter() { |
- if (radius < 0 || direction.count() !=3) |
+ if (fSigma < 0 || fDirection.count() !=3) |
return NULL; |
- return SkBlurMaskFilter::CreateEmboss(direction.begin(), ambient, specular, radius); |
+ return SkBlurMaskFilter::CreateEmboss(fSigma, fDirection.begin(), |
+ fAmbient, fSpecular); |
} |