| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 return fUseNonVBOVertexAndIndexDynamicData; | 275 return fUseNonVBOVertexAndIndexDynamicData; |
| 276 } | 276 } |
| 277 | 277 |
| 278 /// Does ReadPixels support the provided format/type combo? | 278 /// Does ReadPixels support the provided format/type combo? |
| 279 bool readPixelsSupported(const GrGLInterface* intf, | 279 bool readPixelsSupported(const GrGLInterface* intf, |
| 280 GrGLenum format, | 280 GrGLenum format, |
| 281 GrGLenum type) const; | 281 GrGLenum type) const; |
| 282 | 282 |
| 283 bool isCoreProfile() const { return fIsCoreProfile; } | 283 bool isCoreProfile() const { return fIsCoreProfile; } |
| 284 | 284 |
| 285 bool fixedFunctionSupport() const { return fFixedFunctionSupport; } |
| 286 |
| 285 /// Is there support for discarding the frame buffer | 287 /// Is there support for discarding the frame buffer |
| 286 bool discardFBSupport() const { return fDiscardFBSupport; } | 288 bool discardFBSupport() const { return fDiscardFBSupport; } |
| 287 | 289 |
| 288 private: | 290 private: |
| 289 /** | 291 /** |
| 290 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly | 292 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly |
| 291 * performing glCheckFrameBufferStatus for the same config. | 293 * performing glCheckFrameBufferStatus for the same config. |
| 292 */ | 294 */ |
| 293 struct VerifiedColorConfigs { | 295 struct VerifiedColorConfigs { |
| 294 VerifiedColorConfigs() { | 296 VerifiedColorConfigs() { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 bool fPackFlipYSupport : 1; | 359 bool fPackFlipYSupport : 1; |
| 358 bool fTextureUsageSupport : 1; | 360 bool fTextureUsageSupport : 1; |
| 359 bool fTexStorageSupport : 1; | 361 bool fTexStorageSupport : 1; |
| 360 bool fTextureRedSupport : 1; | 362 bool fTextureRedSupport : 1; |
| 361 bool fImagingSupport : 1; | 363 bool fImagingSupport : 1; |
| 362 bool fTwoFormatLimit : 1; | 364 bool fTwoFormatLimit : 1; |
| 363 bool fFragCoordsConventionSupport : 1; | 365 bool fFragCoordsConventionSupport : 1; |
| 364 bool fVertexArrayObjectSupport : 1; | 366 bool fVertexArrayObjectSupport : 1; |
| 365 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 367 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 366 bool fIsCoreProfile : 1; | 368 bool fIsCoreProfile : 1; |
| 369 bool fFixedFunctionSupport : 1; |
| 367 bool fDiscardFBSupport : 1; | 370 bool fDiscardFBSupport : 1; |
| 368 | 371 |
| 369 typedef GrDrawTargetCaps INHERITED; | 372 typedef GrDrawTargetCaps INHERITED; |
| 370 }; | 373 }; |
| 371 | 374 |
| 372 #endif | 375 #endif |
| OLD | NEW |