| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 279 |
| 280 /// Is there support for ES2 compatability? | 280 /// Is there support for ES2 compatability? |
| 281 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; } | 281 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; } |
| 282 | 282 |
| 283 /// Can we call glDisable(GL_MULTISAMPLE)? | 283 /// Can we call glDisable(GL_MULTISAMPLE)? |
| 284 bool multisampleDisableSupport() const { return fMultisampleDisableSupport;
} | 284 bool multisampleDisableSupport() const { return fMultisampleDisableSupport;
} |
| 285 | 285 |
| 286 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte
nt. | 286 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte
nt. |
| 287 bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAnd
IndexDynamicData; } | 287 bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAnd
IndexDynamicData; } |
| 288 | 288 |
| 289 /// Does ReadPixels support the provided format/type combo? | 289 /// Does ReadPixels support reading readConfig pixels from a FBO that is ren
derTargetConfig? |
| 290 bool readPixelsSupported(GrGLRenderTarget* target, | 290 bool readPixelsSupported(GrPixelConfig renderTargetConfig, |
| 291 GrPixelConfig readConfig, | 291 GrPixelConfig readConfig, |
| 292 std::function<void (GrGLenum, GrGLint*)> getInteger
v, | 292 std::function<void (GrGLenum, GrGLint*)> getInteger
v, |
| 293 std::function<void (GrGLRenderTarget*)> bindRenderT
arget) const; | 293 std::function<bool ()> bindRenderTarget) const; |
| 294 | 294 |
| 295 bool isCoreProfile() const { return fIsCoreProfile; } | 295 bool isCoreProfile() const { return fIsCoreProfile; } |
| 296 | 296 |
| 297 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo
rt; } | 297 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo
rt; } |
| 298 | 298 |
| 299 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport
; } | 299 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport
; } |
| 300 | 300 |
| 301 /// Are textures with GL_TEXTURE_EXTERNAL_OES type supported. | 301 /// Are textures with GL_TEXTURE_EXTERNAL_OES type supported. |
| 302 bool externalTextureSupport() const { return fExternalTextureSupport; } | 302 bool externalTextureSupport() const { return fExternalTextureSupport; } |
| 303 | 303 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 | 456 |
| 457 GrSwizzle fSwizzle; | 457 GrSwizzle fSwizzle; |
| 458 }; | 458 }; |
| 459 | 459 |
| 460 ConfigInfo fConfigTable[kGrPixelConfigCnt]; | 460 ConfigInfo fConfigTable[kGrPixelConfigCnt]; |
| 461 | 461 |
| 462 typedef GrCaps INHERITED; | 462 typedef GrCaps INHERITED; |
| 463 }; | 463 }; |
| 464 | 464 |
| 465 #endif | 465 #endif |
| OLD | NEW |