| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrGLEffectMatrix_DEFINED | 8 #ifndef GrGLEffectMatrix_DEFINED |
| 9 #define GrGLEffectMatrix_DEFINED | 9 #define GrGLEffectMatrix_DEFINED |
| 10 | 10 |
| 11 #include "GrGLEffect.h" | 11 #include "GrGLEffect.h" |
| 12 #include "SkMatrix.h" | 12 #include "SkMatrix.h" |
| 13 | 13 |
| 14 class GrTexture; | 14 class GrTexture; |
| 15 class SkRandom; | |
| 16 | 15 |
| 17 /** | 16 /** |
| 18 * This is a helper to implement a texture matrix in a GrGLEffect. | 17 * This is a helper to implement a texture matrix in a GrGLEffect. |
| 19 */ | 18 */ |
| 20 class GrGLEffectMatrix { | 19 class GrGLEffectMatrix { |
| 21 public: | 20 public: |
| 22 typedef GrGLEffect::EffectKey EffectKey; | 21 typedef GrGLEffect::EffectKey EffectKey; |
| 23 /** | 22 /** |
| 24 * The matrix uses kKeyBits of the effect's EffectKey. A GrGLEffect may plac
e these bits at an | 23 * The matrix uses kKeyBits of the effect's EffectKey. A GrGLEffect may plac
e these bits at an |
| 25 * arbitrary shift in its final key. However, when GrGLEffectMatrix::emitCod
e*() code is called | 24 * arbitrary shift in its final key. However, when GrGLEffectMatrix::emitCod
e*() code is called |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 kNoPersp_Key = 2, | 87 kNoPersp_Key = 2, |
| 89 kGeneral_Key = 3, | 88 kGeneral_Key = 3, |
| 90 }; | 89 }; |
| 91 | 90 |
| 92 GrGLUniformManager::UniformHandle fUni; | 91 GrGLUniformManager::UniformHandle fUni; |
| 93 GrSLType fUniType; | 92 GrSLType fUniType; |
| 94 SkMatrix fPrevMatrix; | 93 SkMatrix fPrevMatrix; |
| 95 }; | 94 }; |
| 96 | 95 |
| 97 #endif | 96 #endif |
| OLD | NEW |