| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrGLSLFragmentShaderBuilder_DEFINED | 8 #ifndef GrGLSLFragmentShaderBuilder_DEFINED |
| 9 #define GrGLSLFragmentShaderBuilder_DEFINED | 9 #define GrGLSLFragmentShaderBuilder_DEFINED |
| 10 | 10 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 #endif | 205 #endif |
| 206 | 206 |
| 207 static const char* DeclaredColorOutputName() { return "fsColorOut"; } | 207 static const char* DeclaredColorOutputName() { return "fsColorOut"; } |
| 208 static const char* DeclaredSecondaryColorOutputName() { return "fsSecondaryC
olorOut"; } | 208 static const char* DeclaredSecondaryColorOutputName() { return "fsSecondaryC
olorOut"; } |
| 209 | 209 |
| 210 GrSurfaceOrigin getSurfaceOrigin() const; | 210 GrSurfaceOrigin getSurfaceOrigin() const; |
| 211 | 211 |
| 212 void onFinalize() override; | 212 void onFinalize() override; |
| 213 void defineSampleOffsetArray(const char* name, const SkMatrix&); | 213 void defineSampleOffsetArray(const char* name, const SkMatrix&); |
| 214 | 214 |
| 215 static const char* kDstTextureColorName; | 215 static const char* kDstColorName; |
| 216 | 216 |
| 217 /* | 217 /* |
| 218 * State that tracks which child proc in the proc tree is currently emitting
code. This is | 218 * State that tracks which child proc in the proc tree is currently emitting
code. This is |
| 219 * used to update the fMangleString, which is used to mangle the names of un
iforms and functions | 219 * used to update the fMangleString, which is used to mangle the names of un
iforms and functions |
| 220 * emitted by the proc. fSubstageIndices is a stack: its count indicates ho
w many levels deep | 220 * emitted by the proc. fSubstageIndices is a stack: its count indicates ho
w many levels deep |
| 221 * we are in the tree, and its second-to-last value is the index of the chil
d proc at that | 221 * we are in the tree, and its second-to-last value is the index of the chil
d proc at that |
| 222 * level which is currently emitting code. For example, if fSubstageIndices
= [3, 1, 2, 0], that | 222 * level which is currently emitting code. For example, if fSubstageIndices
= [3, 1, 2, 0], that |
| 223 * means we're currently emitting code for the base proc's 3rd child's 1st c
hild's 2nd child. | 223 * means we're currently emitting code for the base proc's 3rd child's 1st c
hild's 2nd child. |
| 224 */ | 224 */ |
| 225 SkTArray<int> fSubstageIndices; | 225 SkTArray<int> fSubstageIndices; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 247 // the program creator | 247 // the program creator |
| 248 GrProcessor::RequiredFeatures fUsedProcessorFeatures; | 248 GrProcessor::RequiredFeatures fUsedProcessorFeatures; |
| 249 bool fHasReadDstColor; | 249 bool fHasReadDstColor; |
| 250 #endif | 250 #endif |
| 251 | 251 |
| 252 friend class GrGLSLProgramBuilder; | 252 friend class GrGLSLProgramBuilder; |
| 253 friend class GrGLProgramBuilder; | 253 friend class GrGLProgramBuilder; |
| 254 }; | 254 }; |
| 255 | 255 |
| 256 #endif | 256 #endif |
| OLD | NEW |