| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 | 8 |
| 9 #ifndef GrGLSLCaps_DEFINED | 9 #ifndef GrGLSLCaps_DEFINED |
| 10 #define GrGLSLCaps_DEFINED | 10 #define GrGLSLCaps_DEFINED |
| 11 | 11 |
| 12 #include "GrCaps.h" | 12 #include "GrCaps.h" |
| 13 #include "GrGLSL.h" | 13 #include "GrGLSL.h" |
| 14 | 14 |
| 15 class GrGLSLCaps : public GrShaderCaps { | 15 class GrGLSLCaps : public GrShaderCaps { |
| 16 public: | 16 public: |
| 17 SK_DECLARE_INST_COUNT(GrGLSLCaps) | 17 |
| 18 | 18 |
| 19 /** | 19 /** |
| 20 * Indicates how GLSL must interact with advanced blend equations. The KHR ex
tension requires | 20 * Indicates how GLSL must interact with advanced blend equations. The KHR ex
tension requires |
| 21 * special layout qualifiers in the fragment shader. | 21 * special layout qualifiers in the fragment shader. |
| 22 */ | 22 */ |
| 23 enum AdvBlendEqInteraction { | 23 enum AdvBlendEqInteraction { |
| 24 kNotSupported_AdvBlendEqInteraction, //<! No _blend_equation_advance
d extension | 24 kNotSupported_AdvBlendEqInteraction, //<! No _blend_equation_advance
d extension |
| 25 kAutomatic_AdvBlendEqInteraction, //<! No interaction required | 25 kAutomatic_AdvBlendEqInteraction, //<! No interaction required |
| 26 kGeneralEnable_AdvBlendEqInteraction, //<! layout(blend_support_all_e
quations) out | 26 kGeneralEnable_AdvBlendEqInteraction, //<! layout(blend_support_all_e
quations) out |
| 27 kSpecificEnables_AdvBlendEqInteraction, //<! Specific layout qualifiers
per equation | 27 kSpecificEnables_AdvBlendEqInteraction, //<! Specific layout qualifiers
per equation |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 AdvBlendEqInteraction fAdvBlendEqInteraction; | 86 AdvBlendEqInteraction fAdvBlendEqInteraction; |
| 87 | 87 |
| 88 friend class GrGLCaps; // For initialization. | 88 friend class GrGLCaps; // For initialization. |
| 89 | 89 |
| 90 typedef GrShaderCaps INHERITED; | 90 typedef GrShaderCaps INHERITED; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 | 93 |
| 94 #endif | 94 #endif |
| OLD | NEW |