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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 return fUseNonVBOVertexAndIndexDynamicData; | 246 return fUseNonVBOVertexAndIndexDynamicData; |
247 } | 247 } |
248 | 248 |
249 /// Does ReadPixels support the provided format/type combo? | 249 /// Does ReadPixels support the provided format/type combo? |
250 bool readPixelsSupported(const GrGLInterface* intf, | 250 bool readPixelsSupported(const GrGLInterface* intf, |
251 GrGLenum format, | 251 GrGLenum format, |
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; } | |
257 | 256 |
258 bool fullClearIsFree() const { return fFullClearIsFree; } | 257 bool fullClearIsFree() const { return fFullClearIsFree; } |
259 | 258 |
260 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; } | 259 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; } |
261 | 260 |
262 /// Is GL_CHROMIUM_map_sub supported? | 261 /// Is GL_CHROMIUM_map_sub supported? |
263 bool mapSubSupport() const { return fMapSubSupport; } | 262 bool mapSubSupport() const { return fMapSubSupport; } |
264 | 263 |
265 private: | 264 private: |
266 /** | 265 /** |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 bool fPackFlipYSupport : 1; | 333 bool fPackFlipYSupport : 1; |
335 bool fTextureUsageSupport : 1; | 334 bool fTextureUsageSupport : 1; |
336 bool fTexStorageSupport : 1; | 335 bool fTexStorageSupport : 1; |
337 bool fTextureRedSupport : 1; | 336 bool fTextureRedSupport : 1; |
338 bool fImagingSupport : 1; | 337 bool fImagingSupport : 1; |
339 bool fTwoFormatLimit : 1; | 338 bool fTwoFormatLimit : 1; |
340 bool fFragCoordsConventionSupport : 1; | 339 bool fFragCoordsConventionSupport : 1; |
341 bool fVertexArrayObjectSupport : 1; | 340 bool fVertexArrayObjectSupport : 1; |
342 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 341 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
343 bool fIsCoreProfile : 1; | 342 bool fIsCoreProfile : 1; |
344 bool fFixedFunctionSupport : 1; | |
345 bool fFullClearIsFree : 1; | 343 bool fFullClearIsFree : 1; |
346 bool fDropsTileOnZeroDivide : 1; | 344 bool fDropsTileOnZeroDivide : 1; |
347 bool fMapSubSupport : 1; | 345 bool fMapSubSupport : 1; |
348 | 346 |
349 typedef GrDrawTargetCaps INHERITED; | 347 typedef GrDrawTargetCaps INHERITED; |
350 }; | 348 }; |
351 | 349 |
352 #endif | 350 #endif |
OLD | NEW |