Chromium Code Reviews| Index: src/gpu/effects/GrDistanceFieldTextureEffect.h |
| diff --git a/src/gpu/effects/GrDistanceFieldTextureEffect.h b/src/gpu/effects/GrDistanceFieldTextureEffect.h |
| index 1292c0322126608943068f6c02955922028167ec..4ef15588ab713c7ec220f8b1353cce7e7a959951 100644 |
| --- a/src/gpu/effects/GrDistanceFieldTextureEffect.h |
| +++ b/src/gpu/effects/GrDistanceFieldTextureEffect.h |
| @@ -21,8 +21,9 @@ class GrGLDistanceFieldTextureEffect; |
| */ |
| class GrDistanceFieldTextureEffect : public GrVertexEffect { |
| public: |
| - static GrEffectRef* Create(GrTexture* tex, const GrTextureParams& p, const SkISize& s) { |
| - AutoEffectUnref effect(SkNEW_ARGS(GrDistanceFieldTextureEffect, (tex, p, s))); |
| + static GrEffectRef* Create(GrTexture* tex, const GrTextureParams& p, const SkISize& s, |
|
bsalomon
2014/03/26 13:18:58
It seems a little weird that the public function h
jvanverth1
2014/03/26 16:24:00
I've removed it -- it's not necessary. I also adde
|
| + bool u) { |
| + AutoEffectUnref effect(SkNEW_ARGS(GrDistanceFieldTextureEffect, (tex, p, s, u))); |
| return CreateEffectRef(effect); |
| } |
| @@ -32,6 +33,7 @@ public: |
| virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags) const SK_OVERRIDE; |
| const SkSize& getSize() const { return fSize; } |
| + bool isUniformScale() const { return fUniformScale; } |
| typedef GrGLDistanceFieldTextureEffect GLEffect; |
| @@ -39,12 +41,13 @@ public: |
| private: |
| GrDistanceFieldTextureEffect(GrTexture* texture, const GrTextureParams& params, |
| - const SkISize& textureSize); |
| + const SkISize& textureSize, bool uniformScale); |
| virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE; |
| GrTextureAccess fTextureAccess; |
| SkSize fSize; |
| + bool fUniformScale; |
| GR_DECLARE_EFFECT_TEST; |