| 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 | |
| 422 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { | 417 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { |
| 423 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); | 418 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); |
| 424 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { | 419 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { |
| 425 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); | 420 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); |
| 426 } | 421 } |
| 427 | 422 |
| 428 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || | 423 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || |
| 429 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || | 424 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || |
| 430 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { | 425 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { |
| 431 fUseDrawInsteadOfClear = true; | 426 fUseDrawInsteadOfClear = true; |
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1195 if (fGeometryShaderSupport) { | 1190 if (fGeometryShaderSupport) { |
| 1196 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1191 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
| 1197 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; | 1192 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; |
| 1198 } | 1193 } |
| 1199 } | 1194 } |
| 1200 } | 1195 } |
| 1201 | 1196 |
| 1202 | 1197 |
| 1203 | 1198 |
| 1204 | 1199 |
| OLD | NEW |