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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 /// Are the baseInstance fields supported in indirect draw commands? | 313 /// Are the baseInstance fields supported in indirect draw commands? |
314 bool baseInstanceSupport() const { return fBaseInstanceSupport; } | 314 bool baseInstanceSupport() const { return fBaseInstanceSupport; } |
315 | 315 |
316 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte
nt. | 316 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte
nt. |
317 bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAnd
IndexDynamicData; } | 317 bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAnd
IndexDynamicData; } |
318 | 318 |
319 /// Does ReadPixels support reading readConfig pixels from a FBO that is sur
faceConfig? | 319 /// Does ReadPixels support reading readConfig pixels from a FBO that is sur
faceConfig? |
320 bool readPixelsSupported(GrPixelConfig surfaceConfig, | 320 bool readPixelsSupported(GrPixelConfig surfaceConfig, |
321 GrPixelConfig readConfig, | 321 GrPixelConfig readConfig, |
322 std::function<void (GrGLenum, GrGLint*)> getInteger
v, | 322 std::function<void (GrGLenum, GrGLint*)> getInteger
v, |
323 std::function<bool ()> bindRenderTarget) const; | 323 std::function<bool ()> bindRenderTarget, |
| 324 std::function<void ()> unbindRenderTarget) const; |
324 | 325 |
325 bool isCoreProfile() const { return fIsCoreProfile; } | 326 bool isCoreProfile() const { return fIsCoreProfile; } |
326 | 327 |
327 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo
rt; } | 328 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo
rt; } |
328 | 329 |
329 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport
; } | 330 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport
; } |
330 | 331 |
331 /// Are textures with GL_TEXTURE_RECTANGLE type supported. | 332 /// Are textures with GL_TEXTURE_RECTANGLE type supported. |
332 bool rectangleTextureSupport() const { return fRectangleTextureSupport; } | 333 bool rectangleTextureSupport() const { return fRectangleTextureSupport; } |
333 | 334 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 | 493 |
493 GrSwizzle fSwizzle; | 494 GrSwizzle fSwizzle; |
494 }; | 495 }; |
495 | 496 |
496 ConfigInfo fConfigTable[kGrPixelConfigCnt]; | 497 ConfigInfo fConfigTable[kGrPixelConfigCnt]; |
497 | 498 |
498 typedef GrCaps INHERITED; | 499 typedef GrCaps INHERITED; |
499 }; | 500 }; |
500 | 501 |
501 #endif | 502 #endif |
OLD | NEW |