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 GrGLProgramEffects_DEFINED | 8 #ifndef GrGLProgramEffects_DEFINED |
9 #define GrGLProgramEffects_DEFINED | 9 #define GrGLProgramEffects_DEFINED |
10 | 10 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 TransformedCoordsArray*); | 193 TransformedCoordsArray*); |
194 | 194 |
195 /** | 195 /** |
196 * Helper for setData(). Sets all the transform matrices for an effect. | 196 * Helper for setData(). Sets all the transform matrices for an effect. |
197 */ | 197 */ |
198 void setTransformData(const GrGLUniformManager&, const GrDrawEffect&, int ef
fectIdx); | 198 void setTransformData(const GrGLUniformManager&, const GrDrawEffect&, int ef
fectIdx); |
199 | 199 |
200 struct Transform { | 200 struct Transform { |
201 Transform() { fCurrentValue = SkMatrix::InvalidMatrix(); } | 201 Transform() { fCurrentValue = SkMatrix::InvalidMatrix(); } |
202 UniformHandle fHandle; | 202 UniformHandle fHandle; |
203 GrSLType fType; | |
204 SkMatrix fCurrentValue; | 203 SkMatrix fCurrentValue; |
205 }; | 204 }; |
206 | 205 |
207 SkTArray<SkSTArray<2, Transform, true> > fTransforms; | 206 SkTArray<SkSTArray<2, Transform, true> > fTransforms; |
208 bool fHasExplicitLocalCoords; | 207 bool fHasExplicitLocalCoords; |
209 | 208 |
210 typedef GrGLProgramEffects INHERITED; | 209 typedef GrGLProgramEffects INHERITED; |
211 }; | 210 }; |
212 | 211 |
213 /** | 212 /** |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 GrGLProgramEffects* finish() { return fProgramEffects.detach(); } | 318 GrGLProgramEffects* finish() { return fProgramEffects.detach(); } |
320 | 319 |
321 private: | 320 private: |
322 GrGLFragmentOnlyShaderBuilder* fBuilder; | 321 GrGLFragmentOnlyShaderBuilder* fBuilder; |
323 SkAutoTDelete<GrGLPathTexGenProgramEffects> fProgramEffects; | 322 SkAutoTDelete<GrGLPathTexGenProgramEffects> fProgramEffects; |
324 | 323 |
325 typedef GrGLProgramEffectsBuilder INHERITED; | 324 typedef GrGLProgramEffectsBuilder INHERITED; |
326 }; | 325 }; |
327 | 326 |
328 #endif | 327 #endif |
OLD | NEW |