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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 return fUseNonVBOVertexAndIndexDynamicData; | 229 return fUseNonVBOVertexAndIndexDynamicData; |
230 } | 230 } |
231 | 231 |
232 /// Does ReadPixels support the provided format/type combo? | 232 /// Does ReadPixels support the provided format/type combo? |
233 bool readPixelsSupported(const GrGLInterface* intf, | 233 bool readPixelsSupported(const GrGLInterface* intf, |
234 GrGLenum format, | 234 GrGLenum format, |
235 GrGLenum type) const; | 235 GrGLenum type) const; |
236 | 236 |
237 bool isCoreProfile() const { return fIsCoreProfile; } | 237 bool isCoreProfile() const { return fIsCoreProfile; } |
238 | 238 |
| 239 /// Is there support for discarding the frame buffer |
| 240 bool discardFBSupport() const { return fDiscardFBSupport; } |
| 241 |
239 private: | 242 private: |
240 /** | 243 /** |
241 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly | 244 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly |
242 * performing glCheckFrameBufferStatus for the same config. | 245 * performing glCheckFrameBufferStatus for the same config. |
243 */ | 246 */ |
244 struct VerifiedColorConfigs { | 247 struct VerifiedColorConfigs { |
245 VerifiedColorConfigs() { | 248 VerifiedColorConfigs() { |
246 this->reset(); | 249 this->reset(); |
247 } | 250 } |
248 | 251 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 bool fPackFlipYSupport : 1; | 307 bool fPackFlipYSupport : 1; |
305 bool fTextureUsageSupport : 1; | 308 bool fTextureUsageSupport : 1; |
306 bool fTexStorageSupport : 1; | 309 bool fTexStorageSupport : 1; |
307 bool fTextureRedSupport : 1; | 310 bool fTextureRedSupport : 1; |
308 bool fImagingSupport : 1; | 311 bool fImagingSupport : 1; |
309 bool fTwoFormatLimit : 1; | 312 bool fTwoFormatLimit : 1; |
310 bool fFragCoordsConventionSupport : 1; | 313 bool fFragCoordsConventionSupport : 1; |
311 bool fVertexArrayObjectSupport : 1; | 314 bool fVertexArrayObjectSupport : 1; |
312 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 315 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
313 bool fIsCoreProfile : 1; | 316 bool fIsCoreProfile : 1; |
| 317 bool fDiscardFBSupport : 1; |
314 | 318 |
315 typedef GrDrawTargetCaps INHERITED; | 319 typedef GrDrawTargetCaps INHERITED; |
316 }; | 320 }; |
317 | 321 |
318 #endif | 322 #endif |
OLD | NEW |