Index: src/gpu/effects/GrDistanceFieldTextureEffect.h |
diff --git a/src/gpu/effects/GrDistanceFieldTextureEffect.h b/src/gpu/effects/GrDistanceFieldTextureEffect.h |
index fc37ddb99a2f73cfa2918850c09a41fbf26fe258..e754bb200b167248e46c3a6ae5f1c37ad7c3a08e 100755 |
--- a/src/gpu/effects/GrDistanceFieldTextureEffect.h |
+++ b/src/gpu/effects/GrDistanceFieldTextureEffect.h |
@@ -21,27 +21,30 @@ class GrGLDistanceFieldTextureEffect; |
*/ |
class GrDistanceFieldTextureEffect : public GrVertexEffect { |
public: |
- static GrEffectRef* Create(GrTexture* tex, const GrTextureParams& p) { |
- AutoEffectUnref effect(SkNEW_ARGS(GrDistanceFieldTextureEffect, (tex, p))); |
+ static GrEffectRef* Create(GrTexture* tex, const GrTextureParams& p, const SkISize& s) { |
+ AutoEffectUnref effect(SkNEW_ARGS(GrDistanceFieldTextureEffect, (tex, p, s))); |
return CreateEffectRef(effect); |
} |
virtual ~GrDistanceFieldTextureEffect() {} |
- static const char* Name() { return "Texture"; } |
+ static const char* Name() { return "DistanceFieldTexture"; } |
virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags) const SK_OVERRIDE; |
+ const SkSize& getSize() const { return fSize; } |
typedef GrGLDistanceFieldTextureEffect GLEffect; |
virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; |
private: |
- GrDistanceFieldTextureEffect(GrTexture* texture, const GrTextureParams& params); |
+ GrDistanceFieldTextureEffect(GrTexture* texture, const GrTextureParams& params, |
+ const SkISize& textureSize); |
virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE; |
GrTextureAccess fTextureAccess; |
+ SkSize fSize; |
GR_DECLARE_EFFECT_TEST; |