| 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 #include "GrGLCaps.h" | 9 #include "GrGLCaps.h" |
| 10 | 10 |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 fShaderDerivativeSupport = ctxInfo.version() >= GR_GL_VER(3, 0) || | 373 fShaderDerivativeSupport = ctxInfo.version() >= GR_GL_VER(3, 0) || |
| 374 ctxInfo.hasExtension("GL_OES_standard_derivat
ives"); | 374 ctxInfo.hasExtension("GL_OES_standard_derivat
ives"); |
| 375 } | 375 } |
| 376 | 376 |
| 377 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { | 377 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { |
| 378 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); | 378 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); |
| 379 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { | 379 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { |
| 380 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); | 380 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); |
| 381 } | 381 } |
| 382 | 382 |
| 383 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || |
| 384 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer()) { |
| 385 fUseDrawInsteadOfClear = true; |
| 386 } |
| 387 |
| 383 this->initConfigTexturableTable(ctxInfo, gli); | 388 this->initConfigTexturableTable(ctxInfo, gli); |
| 384 this->initConfigRenderableTable(ctxInfo); | 389 this->initConfigRenderableTable(ctxInfo); |
| 385 | 390 |
| 386 return true; | 391 return true; |
| 387 } | 392 } |
| 388 | 393 |
| 389 void GrGLCaps::initConfigRenderableTable(const GrGLContextInfo& ctxInfo) { | 394 void GrGLCaps::initConfigRenderableTable(const GrGLContextInfo& ctxInfo) { |
| 390 | 395 |
| 391 // OpenGL < 3.0 | 396 // OpenGL < 3.0 |
| 392 // no support for render targets unless the GL_ARB_framebuffer_object | 397 // no support for render targets unless the GL_ARB_framebuffer_object |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); | 871 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); |
| 867 r.appendf("Fragment coord conventions support: %s\n", | 872 r.appendf("Fragment coord conventions support: %s\n", |
| 868 (fFragCoordsConventionSupport ? "YES": "NO")); | 873 (fFragCoordsConventionSupport ? "YES": "NO")); |
| 869 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); | 874 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); |
| 870 r.appendf("Use non-VBO for dynamic data: %s\n", | 875 r.appendf("Use non-VBO for dynamic data: %s\n", |
| 871 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); | 876 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); |
| 872 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO
")); | 877 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO
")); |
| 873 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES"
: "NO")); | 878 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES"
: "NO")); |
| 874 return r; | 879 return r; |
| 875 } | 880 } |
| OLD | NEW |