| OLD | NEW |
| 1 | 1 |
| 2 #ifndef GrDrawEffect_DEFINED | 2 #ifndef GrDrawEffect_DEFINED |
| 3 #define GrDrawEffect_DEFINED | 3 #define GrDrawEffect_DEFINED |
| 4 | 4 |
| 5 #include "GrEffectStage.h" | 5 #include "GrEffectStage.h" |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * This class is used to communicate the particular GrEffect used in a draw to t
he backend-specific | 8 * This class is used to communicate the particular GrEffect used in a draw to t
he backend-specific |
| 9 * effect subclass (e.g. GrGLEffect). It is used to by the backend-specific clas
s to generate a | 9 * effect subclass (e.g. GrGLEffect). It is used to by the backend-specific clas
s to generate a |
| 10 * cache key for the effect, generate code on a program cache miss, and to uploa
d uniform values to | 10 * cache key for the effect, generate code on a program cache miss, and to uploa
d uniform values to |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 const SkMatrix& getCoordChangeMatrix() const { | 32 const SkMatrix& getCoordChangeMatrix() const { |
| 33 if (fExplicitLocalCoords) { | 33 if (fExplicitLocalCoords) { |
| 34 return SkMatrix::I(); | 34 return SkMatrix::I(); |
| 35 } else { | 35 } else { |
| 36 return fEffectStage->getCoordChangeMatrix(); | 36 return fEffectStage->getCoordChangeMatrix(); |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 | 39 |
| 40 bool programHasExplicitLocalCoords() const { return fExplicitLocalCoords; } | 40 bool programHasExplicitLocalCoords() const { return fExplicitLocalCoords; } |
| 41 | 41 |
| 42 const int* getVertexAttribIndices() const { return fEffectStage->getVertexAt
tribIndices(); } | |
| 43 int getVertexAttribIndexCount() const { return fEffectStage->getVertexAttrib
IndexCount(); } | |
| 44 | |
| 45 private: | 42 private: |
| 46 const GrEffectStage* fEffectStage; | 43 const GrEffectStage* fEffectStage; |
| 47 bool fExplicitLocalCoords; | 44 bool fExplicitLocalCoords; |
| 48 }; | 45 }; |
| 49 | 46 |
| 50 #endif | 47 #endif |
| OLD | NEW |