| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 VerifiedColorConfigs() { | 245 VerifiedColorConfigs() { |
| 246 this->reset(); | 246 this->reset(); |
| 247 } | 247 } |
| 248 | 248 |
| 249 void reset() { | 249 void reset() { |
| 250 for (int i = 0; i < kNumUints; ++i) { | 250 for (int i = 0; i < kNumUints; ++i) { |
| 251 fVerifiedColorConfigs[i] = 0; | 251 fVerifiedColorConfigs[i] = 0; |
| 252 } | 252 } |
| 253 } | 253 } |
| 254 | 254 |
| 255 static const int kNumUints = (kGrPixelConfigCount + 31) / 32; | 255 static const int kNumUints = (kGrPixelConfigCnt + 31) / 32; |
| 256 uint32_t fVerifiedColorConfigs[kNumUints]; | 256 uint32_t fVerifiedColorConfigs[kNumUints]; |
| 257 | 257 |
| 258 void markVerified(GrPixelConfig config) { | 258 void markVerified(GrPixelConfig config) { |
| 259 #if !GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT | 259 #if !GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT |
| 260 return; | 260 return; |
| 261 #endif | 261 #endif |
| 262 int u32Idx = config / 32; | 262 int u32Idx = config / 32; |
| 263 int bitIdx = config % 32; | 263 int bitIdx = config % 32; |
| 264 fVerifiedColorConfigs[u32Idx] |= 1 << bitIdx; | 264 fVerifiedColorConfigs[u32Idx] |= 1 << bitIdx; |
| 265 } | 265 } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 bool fTwoFormatLimit : 1; | 309 bool fTwoFormatLimit : 1; |
| 310 bool fFragCoordsConventionSupport : 1; | 310 bool fFragCoordsConventionSupport : 1; |
| 311 bool fVertexArrayObjectSupport : 1; | 311 bool fVertexArrayObjectSupport : 1; |
| 312 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 312 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 313 bool fIsCoreProfile : 1; | 313 bool fIsCoreProfile : 1; |
| 314 | 314 |
| 315 typedef GrDrawTargetCaps INHERITED; | 315 typedef GrDrawTargetCaps INHERITED; |
| 316 }; | 316 }; |
| 317 | 317 |
| 318 #endif | 318 #endif |
| OLD | NEW |