Index: src/gpu/effects/GrDistanceFieldTextureEffect.cpp |
diff --git a/src/gpu/effects/GrDistanceFieldTextureEffect.cpp b/src/gpu/effects/GrDistanceFieldTextureEffect.cpp |
index ee7dd61387033af947a0920c32911e12235a860f..b689c8f6a1432ebd649f5d42c2ed5f0611ca5590 100755 |
--- a/src/gpu/effects/GrDistanceFieldTextureEffect.cpp |
+++ b/src/gpu/effects/GrDistanceFieldTextureEffect.cpp |
@@ -34,7 +34,11 @@ public: |
GrGLDistanceFieldTextureEffect(const GrBackendEffectFactory& factory, |
const GrDrawEffect& drawEffect) |
: INHERITED (factory) |
- , fTextureSize(SkISize::Make(-1,-1)) {} |
+ , fTextureSize(SkISize::Make(-1,-1)) |
+#ifdef SK_GAMMA_APPLY_TO_A8 |
+ , fLuminance(-1.0f) |
+#endif |
+ {} |
virtual void emitCode(GrGLFullProgramBuilder* builder, |
const GrDrawEffect& drawEffect, |
@@ -262,7 +266,8 @@ public: |
GrGLDistanceFieldLCDTextureEffect(const GrBackendEffectFactory& factory, |
const GrDrawEffect& drawEffect) |
: INHERITED (factory) |
- , fTextureSize(SkISize::Make(-1,-1)) {} |
+ , fTextureSize(SkISize::Make(-1,-1)) |
+ , fTextColor(GrColor_ILLEGAL) {} |
virtual void emitCode(GrGLFullProgramBuilder* builder, |
const GrDrawEffect& drawEffect, |