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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 } | 396 } |
397 | 397 |
398 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { | 398 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { |
399 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); | 399 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); |
400 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { | 400 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { |
401 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); | 401 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); |
402 } | 402 } |
403 | 403 |
404 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || | 404 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || |
405 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || | 405 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || |
406 kQualcomm_GrGLVendor == ctxInfo.vendor()) { | 406 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { |
407 fUseDrawInsteadOfClear = true; | 407 fUseDrawInsteadOfClear = true; |
408 } | 408 } |
409 | 409 |
410 this->initConfigTexturableTable(ctxInfo, gli); | 410 this->initConfigTexturableTable(ctxInfo, gli); |
411 this->initConfigRenderableTable(ctxInfo); | 411 this->initConfigRenderableTable(ctxInfo); |
412 | 412 |
413 this->initShaderPrecisionTable(ctxInfo, gli); | 413 this->initShaderPrecisionTable(ctxInfo, gli); |
414 | 414 |
415 return true; | 415 return true; |
416 } | 416 } |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); | 1042 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); |
1043 r.appendf("Fragment coord conventions support: %s\n", | 1043 r.appendf("Fragment coord conventions support: %s\n", |
1044 (fFragCoordsConventionSupport ? "YES": "NO")); | 1044 (fFragCoordsConventionSupport ? "YES": "NO")); |
1045 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); | 1045 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); |
1046 r.appendf("Use non-VBO for dynamic data: %s\n", | 1046 r.appendf("Use non-VBO for dynamic data: %s\n", |
1047 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); | 1047 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); |
1048 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO
")); | 1048 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO
")); |
1049 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES"
: "NO")); | 1049 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES"
: "NO")); |
1050 return r; | 1050 return r; |
1051 } | 1051 } |
OLD | NEW |