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 GrGLSLPrimitiveProcessor_DEFINED | 8 #ifndef GrGLSLPrimitiveProcessor_DEFINED |
9 #define GrGLSLPrimitiveProcessor_DEFINED | 9 #define GrGLSLPrimitiveProcessor_DEFINED |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 virtual void setTransformData(const GrPrimitiveProcessor&, | 93 virtual void setTransformData(const GrPrimitiveProcessor&, |
94 const GrGLSLProgramDataManager& pdman, | 94 const GrGLSLProgramDataManager& pdman, |
95 int index, | 95 int index, |
96 const SkTArray<const GrCoordTransform*, true>&
transforms) = 0; | 96 const SkTArray<const GrCoordTransform*, true>&
transforms) = 0; |
97 | 97 |
98 protected: | 98 protected: |
99 void setupUniformColor(GrGLSLPPFragmentBuilder* fragBuilder, | 99 void setupUniformColor(GrGLSLPPFragmentBuilder* fragBuilder, |
100 GrGLSLUniformHandler* uniformHandler, | 100 GrGLSLUniformHandler* uniformHandler, |
101 const char* outputName, | 101 const char* outputName, |
102 UniformHandle* colorUniform); | 102 UniformHandle* colorUniform); |
103 | |
104 struct Transform { | |
105 Transform() : fType(kVoid_GrSLType) { fCurrentValue = SkMatrix::InvalidM
atrix(); } | |
106 SkMatrix fCurrentValue; | |
107 GrSLType fType; | |
108 }; | |
109 }; | 103 }; |
110 | 104 |
111 #endif | 105 #endif |
OLD | NEW |