| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrDistanceFieldTextureEffect_DEFINED | 8 #ifndef GrDistanceFieldTextureEffect_DEFINED |
| 9 #define GrDistanceFieldTextureEffect_DEFINED | 9 #define GrDistanceFieldTextureEffect_DEFINED |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; | 70 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 GrDistanceFieldTextureEffect(GrTexture* texture, const GrTextureParams& para
ms, | 73 GrDistanceFieldTextureEffect(GrTexture* texture, const GrTextureParams& para
ms, |
| 74 #ifdef SK_GAMMA_APPLY_TO_A8 | 74 #ifdef SK_GAMMA_APPLY_TO_A8 |
| 75 GrTexture* gamma, const GrTextureParams& gammaP
arams, float lum, | 75 GrTexture* gamma, const GrTextureParams& gammaP
arams, float lum, |
| 76 #endif | 76 #endif |
| 77 uint32_t flags); | 77 uint32_t flags); |
| 78 | 78 |
| 79 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; | 79 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; |
| 80 | 80 |
| 81 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE; | 81 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE; |
| 82 | 82 |
| 83 GrTextureAccess fTextureAccess; | 83 GrTextureAccess fTextureAccess; |
| 84 #ifdef SK_GAMMA_APPLY_TO_A8 | 84 #ifdef SK_GAMMA_APPLY_TO_A8 |
| 85 GrTextureAccess fGammaTextureAccess; | 85 GrTextureAccess fGammaTextureAccess; |
| 86 float fLuminance; | 86 float fLuminance; |
| 87 #endif | 87 #endif |
| 88 uint32_t fFlags; | 88 uint32_t fFlags; |
| 89 const GrShaderVar& fInTextureCoords; | 89 const GrShaderVar& fInTextureCoords; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 115 uint32_t getFlags() const { return fFlags; } | 115 uint32_t getFlags() const { return fFlags; } |
| 116 | 116 |
| 117 typedef GrGLDistanceFieldNoGammaTextureEffect GLProcessor; | 117 typedef GrGLDistanceFieldNoGammaTextureEffect GLProcessor; |
| 118 | 118 |
| 119 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; | 119 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; |
| 120 | 120 |
| 121 private: | 121 private: |
| 122 GrDistanceFieldNoGammaTextureEffect(GrTexture* texture, const GrTextureParam
s& params, | 122 GrDistanceFieldNoGammaTextureEffect(GrTexture* texture, const GrTextureParam
s& params, |
| 123 uint32_t flags); | 123 uint32_t flags); |
| 124 | 124 |
| 125 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; | 125 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; |
| 126 | 126 |
| 127 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE; | 127 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE; |
| 128 | 128 |
| 129 GrTextureAccess fTextureAccess; | 129 GrTextureAccess fTextureAccess; |
| 130 uint32_t fFlags; | 130 uint32_t fFlags; |
| 131 const GrShaderVar& fInTextureCoords; | 131 const GrShaderVar& fInTextureCoords; |
| 132 | 132 |
| 133 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 133 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
| 134 | 134 |
| 135 typedef GrGeometryProcessor INHERITED; | 135 typedef GrGeometryProcessor INHERITED; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 161 typedef GrGLDistanceFieldLCDTextureEffect GLProcessor; | 161 typedef GrGLDistanceFieldLCDTextureEffect GLProcessor; |
| 162 | 162 |
| 163 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; | 163 virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERR
IDE; |
| 164 | 164 |
| 165 private: | 165 private: |
| 166 GrDistanceFieldLCDTextureEffect(GrTexture* texture, const GrTextureParams& p
arams, | 166 GrDistanceFieldLCDTextureEffect(GrTexture* texture, const GrTextureParams& p
arams, |
| 167 GrTexture* gamma, const GrTextureParams& gam
maParams, | 167 GrTexture* gamma, const GrTextureParams& gam
maParams, |
| 168 SkColor textColor, | 168 SkColor textColor, |
| 169 uint32_t flags); | 169 uint32_t flags); |
| 170 | 170 |
| 171 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; | 171 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; |
| 172 | 172 |
| 173 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE; | 173 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE; |
| 174 | 174 |
| 175 GrTextureAccess fTextureAccess; | 175 GrTextureAccess fTextureAccess; |
| 176 GrTextureAccess fGammaTextureAccess; | 176 GrTextureAccess fGammaTextureAccess; |
| 177 GrColor fTextColor; | 177 GrColor fTextColor; |
| 178 uint32_t fFlags; | 178 uint32_t fFlags; |
| 179 const GrShaderVar& fInTextureCoords; | 179 const GrShaderVar& fInTextureCoords; |
| 180 | 180 |
| 181 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 181 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
| 182 | 182 |
| 183 typedef GrGeometryProcessor INHERITED; | 183 typedef GrGeometryProcessor INHERITED; |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 #endif | 186 #endif |
| OLD | NEW |