| 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 fUseDrawInsteadOfPartialRenderTargetWrite = true; |
| 426 } |
| 427 |
| 424 if (kGL_GrGLStandard == standard) { | 428 if (kGL_GrGLStandard == standard) { |
| 425 // ARB allows mixed size FBO attachments, EXT does not. | 429 // ARB allows mixed size FBO attachments, EXT does not. |
| 426 if (ctxInfo.version() >= GR_GL_VER(3, 0) || | 430 if (ctxInfo.version() >= GR_GL_VER(3, 0) || |
| 427 ctxInfo.hasExtension("GL_ARB_framebuffer_object")) { | 431 ctxInfo.hasExtension("GL_ARB_framebuffer_object")) { |
| 428 fOversizedStencilSupport = true; | 432 fOversizedStencilSupport = true; |
| 429 } else { | 433 } else { |
| 430 SkASSERT(ctxInfo.hasExtension("GL_EXT_framebuffer_object")); | 434 SkASSERT(ctxInfo.hasExtension("GL_EXT_framebuffer_object")); |
| 431 } | 435 } |
| 432 } else { | 436 } else { |
| 433 // ES 3.0 supports mixed size FBO attachments, 2.0 does not. | 437 // 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... |
| 1176 if (fGeometryShaderSupport) { | 1180 if (fGeometryShaderSupport) { |
| 1177 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1181 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
| 1178 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; | 1182 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; |
| 1179 } | 1183 } |
| 1180 } | 1184 } |
| 1181 } | 1185 } |
| 1182 | 1186 |
| 1183 | 1187 |
| 1184 | 1188 |
| 1185 | 1189 |
| OLD | NEW |