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 GrGLCaps_DEFINED | 9 #ifndef GrGLCaps_DEFINED |
10 #define GrGLCaps_DEFINED | 10 #define GrGLCaps_DEFINED |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 /** | 108 /** |
109 * Resets the caps such that nothing is supported. | 109 * Resets the caps such that nothing is supported. |
110 */ | 110 */ |
111 virtual void reset() SK_OVERRIDE; | 111 virtual void reset() SK_OVERRIDE; |
112 | 112 |
113 /** | 113 /** |
114 * Initializes the GrGLCaps to the set of features supported in the current | 114 * Initializes the GrGLCaps to the set of features supported in the current |
115 * OpenGL context accessible via ctxInfo. | 115 * OpenGL context accessible via ctxInfo. |
116 */ | 116 */ |
117 bool init(const GrGLContextInfo& ctxInfo, const GrGLInterface* interface); | 117 bool init(const GrGLContextInfo& ctxInfo, const GrGLInterface* glInterface); |
118 | 118 |
119 /** | 119 /** |
120 * Call to note that a color config has been verified as a valid color | 120 * Call to note that a color config has been verified as a valid color |
121 * attachment. This may save future calls to glCheckFramebufferStatus | 121 * attachment. This may save future calls to glCheckFramebufferStatus |
122 * using isConfigVerifiedColorAttachment(). | 122 * using isConfigVerifiedColorAttachment(). |
123 */ | 123 */ |
124 void markConfigAsValidColorAttachment(GrPixelConfig config) { | 124 void markConfigAsValidColorAttachment(GrPixelConfig config) { |
125 fVerifiedColorConfigs.markVerified(config); | 125 fVerifiedColorConfigs.markVerified(config); |
126 } | 126 } |
127 | 127 |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 bool fVertexArrayObjectSupport : 1; | 361 bool fVertexArrayObjectSupport : 1; |
362 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 362 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
363 bool fIsCoreProfile : 1; | 363 bool fIsCoreProfile : 1; |
364 bool fFullClearIsFree : 1; | 364 bool fFullClearIsFree : 1; |
365 bool fDropsTileOnZeroDivide : 1; | 365 bool fDropsTileOnZeroDivide : 1; |
366 | 366 |
367 typedef GrDrawTargetCaps INHERITED; | 367 typedef GrDrawTargetCaps INHERITED; |
368 }; | 368 }; |
369 | 369 |
370 #endif | 370 #endif |
OLD | NEW |