| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 GrGLenum type) const; | 252 GrGLenum type) const; |
| 253 | 253 |
| 254 bool isCoreProfile() const { return fIsCoreProfile; } | 254 bool isCoreProfile() const { return fIsCoreProfile; } |
| 255 | 255 |
| 256 bool fixedFunctionSupport() const { return fFixedFunctionSupport; } | 256 bool fixedFunctionSupport() const { return fFixedFunctionSupport; } |
| 257 | 257 |
| 258 bool fullClearIsFree() const { return fFullClearIsFree; } | 258 bool fullClearIsFree() const { return fFullClearIsFree; } |
| 259 | 259 |
| 260 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; } | 260 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; } |
| 261 | 261 |
| 262 /// Is GL_CHROMIUM_map_sub supported? |
| 263 bool mapSubSupport() const { return fMapSubSupport; } |
| 264 |
| 262 private: | 265 private: |
| 263 /** | 266 /** |
| 264 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly | 267 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly |
| 265 * performing glCheckFrameBufferStatus for the same config. | 268 * performing glCheckFrameBufferStatus for the same config. |
| 266 */ | 269 */ |
| 267 struct VerifiedColorConfigs { | 270 struct VerifiedColorConfigs { |
| 268 VerifiedColorConfigs() { | 271 VerifiedColorConfigs() { |
| 269 this->reset(); | 272 this->reset(); |
| 270 } | 273 } |
| 271 | 274 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 bool fTextureRedSupport : 1; | 337 bool fTextureRedSupport : 1; |
| 335 bool fImagingSupport : 1; | 338 bool fImagingSupport : 1; |
| 336 bool fTwoFormatLimit : 1; | 339 bool fTwoFormatLimit : 1; |
| 337 bool fFragCoordsConventionSupport : 1; | 340 bool fFragCoordsConventionSupport : 1; |
| 338 bool fVertexArrayObjectSupport : 1; | 341 bool fVertexArrayObjectSupport : 1; |
| 339 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 342 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 340 bool fIsCoreProfile : 1; | 343 bool fIsCoreProfile : 1; |
| 341 bool fFixedFunctionSupport : 1; | 344 bool fFixedFunctionSupport : 1; |
| 342 bool fFullClearIsFree : 1; | 345 bool fFullClearIsFree : 1; |
| 343 bool fDropsTileOnZeroDivide : 1; | 346 bool fDropsTileOnZeroDivide : 1; |
| 347 bool fMapSubSupport : 1; |
| 344 | 348 |
| 345 typedef GrDrawTargetCaps INHERITED; | 349 typedef GrDrawTargetCaps INHERITED; |
| 346 }; | 350 }; |
| 347 | 351 |
| 348 #endif | 352 #endif |
| OLD | NEW |