| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 * An internal call for GrGLProgramBuilder to use to add varyings to the ver
tex shader | 124 * An internal call for GrGLProgramBuilder to use to add varyings to the ver
tex shader |
| 125 */ | 125 */ |
| 126 void addVarying(GrGLVarying*, GrSLPrecision); | 126 void addVarying(GrGLVarying*, GrSLPrecision); |
| 127 | 127 |
| 128 /** | 128 /** |
| 129 * Features that should only be enabled by GrGLFragmentShaderBuilder itself. | 129 * Features that should only be enabled by GrGLFragmentShaderBuilder itself. |
| 130 */ | 130 */ |
| 131 enum GLSLPrivateFeature { | 131 enum GLSLPrivateFeature { |
| 132 kFragCoordConventions_GLSLPrivateFeature = kLastGLSLFeature + 1, | 132 kFragCoordConventions_GLSLPrivateFeature = kLastGLSLFeature + 1, |
| 133 kBlendEquationAdvanced_GLSLPrivateFeature, | 133 kBlendEquationAdvanced_GLSLPrivateFeature, |
| 134 kLastGLSLPrivateFeature = kBlendEquationAdvanced_GLSLPrivateFeature | 134 kBlendFuncExtended_GLSLPrivateFeature, |
| 135 kLastGLSLPrivateFeature = kBlendFuncExtended_GLSLPrivateFeature |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 // Interpretation of DstReadKey when generating code | 138 // Interpretation of DstReadKey when generating code |
| 138 enum { | 139 enum { |
| 139 kNoDstRead_DstReadKey = 0, | 140 kNoDstRead_DstReadKey = 0, |
| 140 kYesDstRead_DstReadKeyBit = 0x1, // Set if we do a dst-copy-read. | 141 kYesDstRead_DstReadKeyBit = 0x1, // Set if we do a dst-copy-read. |
| 141 kUseAlphaConfig_DstReadKeyBit = 0x2, // Set if dst-copy config is alph
a only. | 142 kUseAlphaConfig_DstReadKeyBit = 0x2, // Set if dst-copy config is alph
a only. |
| 142 kTopLeftOrigin_DstReadKeyBit = 0x4, // Set if dst-copy origin is top-
left. | 143 kTopLeftOrigin_DstReadKeyBit = 0x4, // Set if dst-copy origin is top-
left. |
| 143 }; | 144 }; |
| 144 | 145 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 161 // the program creator | 162 // the program creator |
| 162 bool fHasReadDstColor; | 163 bool fHasReadDstColor; |
| 163 bool fHasReadFragmentPosition; | 164 bool fHasReadFragmentPosition; |
| 164 | 165 |
| 165 friend class GrGLProgramBuilder; | 166 friend class GrGLProgramBuilder; |
| 166 | 167 |
| 167 typedef GrGLXPFragmentBuilder INHERITED; | 168 typedef GrGLXPFragmentBuilder INHERITED; |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 #endif | 171 #endif |
| OLD | NEW |