| 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 GrGLEffect_DEFINED | 8 #ifndef GrGLEffect_DEFINED |
| 9 #define GrGLEffect_DEFINED | 9 #define GrGLEffect_DEFINED |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 class GrDrawEffect; | 34 class GrDrawEffect; |
| 35 class GrGLTexture; | 35 class GrGLTexture; |
| 36 class GrGLVertexEffect; | 36 class GrGLVertexEffect; |
| 37 | 37 |
| 38 class GrGLEffect { | 38 class GrGLEffect { |
| 39 | 39 |
| 40 public: | 40 public: |
| 41 typedef GrBackendEffectFactory::EffectKey EffectKey; | 41 typedef GrBackendEffectFactory::EffectKey EffectKey; |
| 42 typedef GrGLProgramEffects::TransformedCoordsArray TransformedCoordsArray; | 42 typedef GrGLProgramEffects::TransformedCoordsArray TransformedCoordsArray; |
| 43 typedef GrGLProgramEffects::TextureSampler TextureSampler; |
| 43 typedef GrGLProgramEffects::TextureSamplerArray TextureSamplerArray; | 44 typedef GrGLProgramEffects::TextureSamplerArray TextureSamplerArray; |
| 44 | 45 |
| 45 enum { | 46 enum { |
| 46 kNoEffectKey = GrBackendEffectFactory::kNoEffectKey, | 47 kNoEffectKey = GrBackendEffectFactory::kNoEffectKey, |
| 47 // the number of bits in EffectKey available to GenKey | 48 // the number of bits in EffectKey available to GenKey |
| 48 kEffectKeyBits = GrBackendEffectFactory::kEffectKeyBits, | 49 kEffectKeyBits = GrBackendEffectFactory::kEffectKeyBits, |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 GrGLEffect(const GrBackendEffectFactory& factory) | 52 GrGLEffect(const GrBackendEffectFactory& factory) |
| 52 : fFactory(factory) | 53 : fFactory(factory) |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 protected: | 104 protected: |
| 104 const GrBackendEffectFactory& fFactory; | 105 const GrBackendEffectFactory& fFactory; |
| 105 | 106 |
| 106 private: | 107 private: |
| 107 friend class GrGLVertexEffect; // to set fIsVertexEffect | 108 friend class GrGLVertexEffect; // to set fIsVertexEffect |
| 108 | 109 |
| 109 bool fIsVertexEffect; | 110 bool fIsVertexEffect; |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 #endif | 113 #endif |
| OLD | NEW |