Chromium Code Reviews| Index: src/gpu/effects/GrTextureDomain.h |
| diff --git a/src/gpu/effects/GrTextureDomain.h b/src/gpu/effects/GrTextureDomain.h |
| index a2e6652e91cf91823cbe167104e4c9f62ab0bbad..5d91e72ddeab709c68ea141d0cc8aad6e1fa134f 100644 |
| --- a/src/gpu/effects/GrTextureDomain.h |
| +++ b/src/gpu/effects/GrTextureDomain.h |
| @@ -95,7 +95,9 @@ public: |
| class GLDomain { |
| public: |
| GLDomain() { |
| - fPrevDomain[0] = SK_FloatNaN; |
| + for (int i = 0; i < kPrevDomainCount; i++) { |
| + fPrevDomain[i] = SK_FloatNaN; |
| + } |
| SkDEBUGCODE(fMode = (Mode) -1;) |
| } |
| @@ -137,6 +139,7 @@ public: |
| } |
| private: |
| + static const int kPrevDomainCount = 4; |
| SkDEBUGCODE(Mode fMode;) |
| GrGLProgramDataManager::UniformHandle fDomainUni; |
| SkString fDomainName; |
|
robertphillips
2015/08/25 18:00:00
use kPrevDomainCount here too ?
|