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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 /** | 99 /** |
100 * Resets the caps such that nothing is supported. | 100 * Resets the caps such that nothing is supported. |
101 */ | 101 */ |
102 virtual void reset() SK_OVERRIDE; | 102 virtual void reset() SK_OVERRIDE; |
103 | 103 |
104 /** | 104 /** |
105 * Initializes the GrGLCaps to the set of features supported in the current | 105 * Initializes the GrGLCaps to the set of features supported in the current |
106 * OpenGL context accessible via ctxInfo. | 106 * OpenGL context accessible via ctxInfo. |
107 */ | 107 */ |
108 void init(const GrGLContextInfo& ctxInfo, const GrGLInterface* interface); | 108 bool init(const GrGLContextInfo& ctxInfo, const GrGLInterface* interface); |
109 | 109 |
110 /** | 110 /** |
111 * Call to note that a color config has been verified as a valid color | 111 * Call to note that a color config has been verified as a valid color |
112 * attachment. This may save future calls to glCheckFramebufferStatus | 112 * attachment. This may save future calls to glCheckFramebufferStatus |
113 * using isConfigVerifiedColorAttachment(). | 113 * using isConfigVerifiedColorAttachment(). |
114 */ | 114 */ |
115 void markConfigAsValidColorAttachment(GrPixelConfig config) { | 115 void markConfigAsValidColorAttachment(GrPixelConfig config) { |
116 fVerifiedColorConfigs.markVerified(config); | 116 fVerifiedColorConfigs.markVerified(config); |
117 } | 117 } |
118 | 118 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 341 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
342 bool fIsCoreProfile : 1; | 342 bool fIsCoreProfile : 1; |
343 bool fFullClearIsFree : 1; | 343 bool fFullClearIsFree : 1; |
344 bool fDropsTileOnZeroDivide : 1; | 344 bool fDropsTileOnZeroDivide : 1; |
345 bool fMapSubSupport : 1; | 345 bool fMapSubSupport : 1; |
346 | 346 |
347 typedef GrDrawTargetCaps INHERITED; | 347 typedef GrDrawTargetCaps INHERITED; |
348 }; | 348 }; |
349 | 349 |
350 #endif | 350 #endif |
OLD | NEW |