| 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || | 449 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || |
| 450 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || | 450 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || |
| 451 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { | 451 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { |
| 452 fUseDrawInsteadOfClear = true; | 452 fUseDrawInsteadOfClear = true; |
| 453 } | 453 } |
| 454 | 454 |
| 455 if (kAdreno4xx_GrGLRenderer == ctxInfo.renderer()) { | 455 if (kAdreno4xx_GrGLRenderer == ctxInfo.renderer()) { |
| 456 fUseDrawInsteadOfPartialRenderTargetWrite = true; | 456 fUseDrawInsteadOfPartialRenderTargetWrite = true; |
| 457 } | 457 } |
| 458 | 458 |
| 459 // Texture uploads sometimes seem to be ignored to textures bound to FBOS on
Tegra3. |
| 460 if (kTegra3_GrGLRenderer == ctxInfo.renderer()) { |
| 461 fUseDrawInsteadOfPartialRenderTargetWrite = true; |
| 462 fUseDrawInsteadOfAllRenderTargetWrites = true; |
| 463 } |
| 464 |
| 459 #ifdef SK_BUILD_FOR_WIN | 465 #ifdef SK_BUILD_FOR_WIN |
| 460 // On ANGLE deferring flushes can lead to GPU starvation | 466 // On ANGLE deferring flushes can lead to GPU starvation |
| 461 fPreferVRAMUseOverFlushes = !isANGLE; | 467 fPreferVRAMUseOverFlushes = !isANGLE; |
| 462 #endif | 468 #endif |
| 463 | 469 |
| 464 if (kChromium_GrGLDriver == ctxInfo.driver()) { | 470 if (kChromium_GrGLDriver == ctxInfo.driver()) { |
| 465 fMustClearUploadedBufferData = true; | 471 fMustClearUploadedBufferData = true; |
| 466 } | 472 } |
| 467 | 473 |
| 468 if (kGL_GrGLStandard == standard) { | 474 if (kGL_GrGLStandard == standard) { |
| (...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1697 for (int j = 0; j < kExternalFormatUsageCnt; ++j) { | 1703 for (int j = 0; j < kExternalFormatUsageCnt; ++j) { |
| 1698 SkASSERT(defaultEntry.fFormats.fExternalFormat[j] != | 1704 SkASSERT(defaultEntry.fFormats.fExternalFormat[j] != |
| 1699 fConfigTable[i].fFormats.fExternalFormat[j]); | 1705 fConfigTable[i].fFormats.fExternalFormat[j]); |
| 1700 } | 1706 } |
| 1701 SkASSERT(defaultEntry.fFormats.fExternalType != fConfigTable[i].fFormats
.fExternalType); | 1707 SkASSERT(defaultEntry.fFormats.fExternalType != fConfigTable[i].fFormats
.fExternalType); |
| 1702 } | 1708 } |
| 1703 #endif | 1709 #endif |
| 1704 } | 1710 } |
| 1705 | 1711 |
| 1706 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} | 1712 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} |
| OLD | NEW |