| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 GrGLenum format, | 241 GrGLenum format, |
| 242 GrGLenum type) const; | 242 GrGLenum type) const; |
| 243 | 243 |
| 244 bool isCoreProfile() const { return fIsCoreProfile; } | 244 bool isCoreProfile() const { return fIsCoreProfile; } |
| 245 | 245 |
| 246 bool fixedFunctionSupport() const { return fFixedFunctionSupport; } | 246 bool fixedFunctionSupport() const { return fFixedFunctionSupport; } |
| 247 | 247 |
| 248 /// Is there support for discarding the frame buffer | 248 /// Is there support for discarding the frame buffer |
| 249 bool discardFBSupport() const { return fDiscardFBSupport; } | 249 bool discardFBSupport() const { return fDiscardFBSupport; } |
| 250 | 250 |
| 251 bool fullClearIsFree() const { return fFullClearIsFree; } |
| 252 |
| 251 private: | 253 private: |
| 252 /** | 254 /** |
| 253 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly | 255 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly |
| 254 * performing glCheckFrameBufferStatus for the same config. | 256 * performing glCheckFrameBufferStatus for the same config. |
| 255 */ | 257 */ |
| 256 struct VerifiedColorConfigs { | 258 struct VerifiedColorConfigs { |
| 257 VerifiedColorConfigs() { | 259 VerifiedColorConfigs() { |
| 258 this->reset(); | 260 this->reset(); |
| 259 } | 261 } |
| 260 | 262 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 bool fTexStorageSupport : 1; | 324 bool fTexStorageSupport : 1; |
| 323 bool fTextureRedSupport : 1; | 325 bool fTextureRedSupport : 1; |
| 324 bool fImagingSupport : 1; | 326 bool fImagingSupport : 1; |
| 325 bool fTwoFormatLimit : 1; | 327 bool fTwoFormatLimit : 1; |
| 326 bool fFragCoordsConventionSupport : 1; | 328 bool fFragCoordsConventionSupport : 1; |
| 327 bool fVertexArrayObjectSupport : 1; | 329 bool fVertexArrayObjectSupport : 1; |
| 328 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 330 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 329 bool fIsCoreProfile : 1; | 331 bool fIsCoreProfile : 1; |
| 330 bool fFixedFunctionSupport : 1; | 332 bool fFixedFunctionSupport : 1; |
| 331 bool fDiscardFBSupport : 1; | 333 bool fDiscardFBSupport : 1; |
| 334 bool fFullClearIsFree : 1; |
| 332 | 335 |
| 333 typedef GrDrawTargetCaps INHERITED; | 336 typedef GrDrawTargetCaps INHERITED; |
| 334 }; | 337 }; |
| 335 | 338 |
| 336 #endif | 339 #endif |
| OLD | NEW |