Chromium Code Reviews| 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 if (kTegra3_GrGLRenderer == ctxInfo.renderer()) { | |
|
robertphillips
2016/02/16 19:00:44
// comment ?
bsalomon
2016/02/16 19:03:05
Done.
| |
| 460 fUseDrawInsteadOfPartialRenderTargetWrite = true; | |
| 461 fUseDrawInsteadOfAllRenderTargetWrites = true; | |
| 462 } | |
| 463 | |
| 459 #ifdef SK_BUILD_FOR_WIN | 464 #ifdef SK_BUILD_FOR_WIN |
| 460 // On ANGLE deferring flushes can lead to GPU starvation | 465 // On ANGLE deferring flushes can lead to GPU starvation |
| 461 fPreferVRAMUseOverFlushes = !isANGLE; | 466 fPreferVRAMUseOverFlushes = !isANGLE; |
| 462 #endif | 467 #endif |
| 463 | 468 |
| 464 if (kChromium_GrGLDriver == ctxInfo.driver()) { | 469 if (kChromium_GrGLDriver == ctxInfo.driver()) { |
| 465 fMustClearUploadedBufferData = true; | 470 fMustClearUploadedBufferData = true; |
| 466 } | 471 } |
| 467 | 472 |
| 468 if (kGL_GrGLStandard == standard) { | 473 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) { | 1702 for (int j = 0; j < kExternalFormatUsageCnt; ++j) { |
| 1698 SkASSERT(defaultEntry.fFormats.fExternalFormat[j] != | 1703 SkASSERT(defaultEntry.fFormats.fExternalFormat[j] != |
| 1699 fConfigTable[i].fFormats.fExternalFormat[j]); | 1704 fConfigTable[i].fFormats.fExternalFormat[j]); |
| 1700 } | 1705 } |
| 1701 SkASSERT(defaultEntry.fFormats.fExternalType != fConfigTable[i].fFormats .fExternalType); | 1706 SkASSERT(defaultEntry.fFormats.fExternalType != fConfigTable[i].fFormats .fExternalType); |
| 1702 } | 1707 } |
| 1703 #endif | 1708 #endif |
| 1704 } | 1709 } |
| 1705 | 1710 |
| 1706 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} | 1711 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} |
| OLD | NEW |