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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer()) { | 407 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer()) { |
408 fMinTextureSize = 16; | 408 fMinTextureSize = 16; |
409 } | 409 } |
410 | 410 |
411 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker"); | 411 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker"); |
412 | 412 |
413 // Disable scratch texture reuse on Mali and Adreno devices | 413 // Disable scratch texture reuse on Mali and Adreno devices |
414 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() && | 414 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() && |
415 kQualcomm_GrGLVendor != ctxInfo.vendor(); | 415 kQualcomm_GrGLVendor != ctxInfo.vendor(); |
416 | 416 |
| 417 #if 0 |
| 418 fReuseScratchBuffers = kARM_GrGLVendor != ctxInfo.vendor() && |
| 419 kQualcomm_GrGLVendor != ctxInfo.vendor(); |
| 420 #endif |
| 421 |
417 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { | 422 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { |
418 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); | 423 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); |
419 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { | 424 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { |
420 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); | 425 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); |
421 } | 426 } |
422 | 427 |
423 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || | 428 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || |
424 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || | 429 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || |
425 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { | 430 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { |
426 fUseDrawInsteadOfClear = true; | 431 fUseDrawInsteadOfClear = true; |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1190 if (fGeometryShaderSupport) { | 1195 if (fGeometryShaderSupport) { |
1191 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1196 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
1192 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; | 1197 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; |
1193 } | 1198 } |
1194 } | 1199 } |
1195 } | 1200 } |
1196 | 1201 |
1197 | 1202 |
1198 | 1203 |
1199 | 1204 |
OLD | NEW |