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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; } | 251 bool fullClearIsFree() const { return fFullClearIsFree; } |
252 | 252 |
253 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; } | |
254 | |
255 private: | 253 private: |
256 /** | 254 /** |
257 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly | 255 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly |
258 * performing glCheckFrameBufferStatus for the same config. | 256 * performing glCheckFrameBufferStatus for the same config. |
259 */ | 257 */ |
260 struct VerifiedColorConfigs { | 258 struct VerifiedColorConfigs { |
261 VerifiedColorConfigs() { | 259 VerifiedColorConfigs() { |
262 this->reset(); | 260 this->reset(); |
263 } | 261 } |
264 | 262 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 bool fTextureRedSupport : 1; | 325 bool fTextureRedSupport : 1; |
328 bool fImagingSupport : 1; | 326 bool fImagingSupport : 1; |
329 bool fTwoFormatLimit : 1; | 327 bool fTwoFormatLimit : 1; |
330 bool fFragCoordsConventionSupport : 1; | 328 bool fFragCoordsConventionSupport : 1; |
331 bool fVertexArrayObjectSupport : 1; | 329 bool fVertexArrayObjectSupport : 1; |
332 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 330 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
333 bool fIsCoreProfile : 1; | 331 bool fIsCoreProfile : 1; |
334 bool fFixedFunctionSupport : 1; | 332 bool fFixedFunctionSupport : 1; |
335 bool fDiscardFBSupport : 1; | 333 bool fDiscardFBSupport : 1; |
336 bool fFullClearIsFree : 1; | 334 bool fFullClearIsFree : 1; |
337 bool fDropsTileOnZeroDivide : 1; | |
338 | 335 |
339 typedef GrDrawTargetCaps INHERITED; | 336 typedef GrDrawTargetCaps INHERITED; |
340 }; | 337 }; |
341 | 338 |
342 #endif | 339 #endif |
OLD | NEW |