| 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { | 414 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { |
| 415 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); | 415 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); |
| 416 } | 416 } |
| 417 | 417 |
| 418 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || | 418 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || |
| 419 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || | 419 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || |
| 420 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { | 420 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { |
| 421 fUseDrawInsteadOfClear = true; | 421 fUseDrawInsteadOfClear = true; |
| 422 } | 422 } |
| 423 | 423 |
| 424 if (kAdreno4xx_GrGLRenderer == ctxInfo.renderer()) { | |
| 425 fUseDrawInsteadOfPartialTextureWrite = true; | |
| 426 } | |
| 427 | |
| 428 if (kGL_GrGLStandard == standard) { | 424 if (kGL_GrGLStandard == standard) { |
| 429 // ARB allows mixed size FBO attachments, EXT does not. | 425 // ARB allows mixed size FBO attachments, EXT does not. |
| 430 if (ctxInfo.version() >= GR_GL_VER(3, 0) || | 426 if (ctxInfo.version() >= GR_GL_VER(3, 0) || |
| 431 ctxInfo.hasExtension("GL_ARB_framebuffer_object")) { | 427 ctxInfo.hasExtension("GL_ARB_framebuffer_object")) { |
| 432 fOversizedStencilSupport = true; | 428 fOversizedStencilSupport = true; |
| 433 } else { | 429 } else { |
| 434 SkASSERT(ctxInfo.hasExtension("GL_EXT_framebuffer_object")); | 430 SkASSERT(ctxInfo.hasExtension("GL_EXT_framebuffer_object")); |
| 435 } | 431 } |
| 436 } else { | 432 } else { |
| 437 // ES 3.0 supports mixed size FBO attachments, 2.0 does not. | 433 // ES 3.0 supports mixed size FBO attachments, 2.0 does not. |
| (...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 if (fGeometryShaderSupport) { | 1176 if (fGeometryShaderSupport) { |
| 1181 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1177 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
| 1182 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; | 1178 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; |
| 1183 } | 1179 } |
| 1184 } | 1180 } |
| 1185 } | 1181 } |
| 1186 | 1182 |
| 1187 | 1183 |
| 1188 | 1184 |
| 1189 | 1185 |
| OLD | NEW |