| 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 GrGLFragmentShaderBuilder_DEFINED | 8 #ifndef GrGLFragmentShaderBuilder_DEFINED |
| 9 #define GrGLFragmentShaderBuilder_DEFINED | 9 #define GrGLFragmentShaderBuilder_DEFINED |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 bool hasReadDstColor() const { return fHasReadDstColor; } | 110 bool hasReadDstColor() const { return fHasReadDstColor; } |
| 111 bool hasReadFragmentPosition() const { return fHasReadFragmentPosition; } | 111 bool hasReadFragmentPosition() const { return fHasReadFragmentPosition; } |
| 112 void reset() { | 112 void reset() { |
| 113 fHasReadDstColor = false; | 113 fHasReadDstColor = false; |
| 114 fHasReadFragmentPosition = false; | 114 fHasReadFragmentPosition = false; |
| 115 } | 115 } |
| 116 | 116 |
| 117 /* | 117 /* |
| 118 * An internal call for GrGLProgramBuilder to use to add varyings to the ver
tex shader | 118 * An internal call for GrGLProgramBuilder to use to add varyings to the ver
tex shader |
| 119 */ | 119 */ |
| 120 void addVarying(GrGLVarying*, GrGLShaderVar::Precision); | 120 void addVarying(GrGLVarying*, GrSLPrecision); |
| 121 | 121 |
| 122 /** | 122 /** |
| 123 * Features that should only be enabled by GrGLFragmentShaderBuilder itself. | 123 * Features that should only be enabled by GrGLFragmentShaderBuilder itself. |
| 124 */ | 124 */ |
| 125 enum GLSLPrivateFeature { | 125 enum GLSLPrivateFeature { |
| 126 kFragCoordConventions_GLSLPrivateFeature = kLastGLSLFeature + 1, | 126 kFragCoordConventions_GLSLPrivateFeature = kLastGLSLFeature + 1, |
| 127 kLastGLSLPrivateFeature = kFragCoordConventions_GLSLPrivateFeature | 127 kLastGLSLPrivateFeature = kFragCoordConventions_GLSLPrivateFeature |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 // Interpretation of DstReadKey when generating code | 130 // Interpretation of DstReadKey when generating code |
| (...skipping 24 matching lines...) Expand all Loading... |
| 155 bool fHasReadDstColor; | 155 bool fHasReadDstColor; |
| 156 bool fHasReadFragmentPosition; | 156 bool fHasReadFragmentPosition; |
| 157 | 157 |
| 158 friend class GrGLNvprProgramBuilder; | 158 friend class GrGLNvprProgramBuilder; |
| 159 friend class GrGLProgramBuilder; | 159 friend class GrGLProgramBuilder; |
| 160 | 160 |
| 161 typedef GrGLFPFragmentBuilder INHERITED; | 161 typedef GrGLFPFragmentBuilder INHERITED; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 #endif | 164 #endif |
| OLD | NEW |