| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // As GLSLProcessors emit code, there are some conditions we need to verify.
We use the below | 196 // As GLSLProcessors emit code, there are some conditions we need to verify.
We use the below |
| 197 // state to track this. The reset call is called per processor emitted. | 197 // state to track this. The reset call is called per processor emitted. |
| 198 GrProcessor::RequiredFeatures usedProcessorFeatures() const { return fUsedPr
ocessorFeatures; } | 198 GrProcessor::RequiredFeatures usedProcessorFeatures() const { return fUsedPr
ocessorFeatures; } |
| 199 bool hasReadDstColor() const { return fHasReadDstColor; } | 199 bool hasReadDstColor() const { return fHasReadDstColor; } |
| 200 void resetVerification() { | 200 void resetVerification() { |
| 201 fUsedProcessorFeatures = GrProcessor::kNone_RequiredFeatures; | 201 fUsedProcessorFeatures = GrProcessor::kNone_RequiredFeatures; |
| 202 fHasReadDstColor = false; | 202 fHasReadDstColor = false; |
| 203 } | 203 } |
| 204 #endif | 204 #endif |
| 205 | 205 |
| 206 static const char* DeclaredColorOutputName() { return "fsColorOut"; } | 206 static const char* DeclaredColorOutputName() { return "sk_FragColor"; } |
| 207 static const char* DeclaredSecondaryColorOutputName() { return "fsSecondaryC
olorOut"; } | 207 static const char* DeclaredSecondaryColorOutputName() { return "fsSecondaryC
olorOut"; } |
| 208 | 208 |
| 209 GrSurfaceOrigin getSurfaceOrigin() const; | 209 GrSurfaceOrigin getSurfaceOrigin() const; |
| 210 | 210 |
| 211 void onFinalize() override; | 211 void onFinalize() override; |
| 212 void defineSampleOffsetArray(const char* name, const SkMatrix&); | 212 void defineSampleOffsetArray(const char* name, const SkMatrix&); |
| 213 | 213 |
| 214 static const char* kDstColorName; | 214 static const char* kDstColorName; |
| 215 | 215 |
| 216 /* | 216 /* |
| (...skipping 29 matching lines...) Expand all Loading... |
| 246 // the program creator | 246 // the program creator |
| 247 GrProcessor::RequiredFeatures fUsedProcessorFeatures; | 247 GrProcessor::RequiredFeatures fUsedProcessorFeatures; |
| 248 bool fHasReadDstColor; | 248 bool fHasReadDstColor; |
| 249 #endif | 249 #endif |
| 250 | 250 |
| 251 friend class GrGLSLProgramBuilder; | 251 friend class GrGLSLProgramBuilder; |
| 252 friend class GrGLProgramBuilder; | 252 friend class GrGLProgramBuilder; |
| 253 }; | 253 }; |
| 254 | 254 |
| 255 #endif | 255 #endif |
| OLD | NEW |