diff options
author | robertphillips <robertphillips@google.com> | 2015-08-20 09:39:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-20 09:39:02 -0700 |
commit | 63926683c583e8497d9d907977e773663cb4bd9e (patch) | |
tree | 8dbc426b58fae1b6d8e13d8dbcfc904113661f8d /include/gpu | |
parent | 12d8472d31ea5edb636d7d5214db253570115c40 (diff) |
Add ANGLE workaround to prefer flushes over VRAM usage
On the whole, https://codereview.chromium.org/1286203002/ (Defer flushes if kPreferNoIO is specified) improved performance but it did cause a performance regression on ANGLE. This CL disables the deferral of flushes on ANGLE until we can add a separate incremental flushing mechanism.
TBR=bsalomon@google.com
BUG=skia:4201
BUG=521529
Review URL: https://codereview.chromium.org/1287193008
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrCaps.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h index 48bcb28c4d..248135d691 100644 --- a/include/gpu/GrCaps.h +++ b/include/gpu/GrCaps.h @@ -133,6 +133,8 @@ public: return fUseDrawInsteadOfPartialRenderTargetWrite; } + bool preferVRAMUseOverFlushes() const { return fPreferVRAMUseOverFlushes; } + /** * Indicates the capabilities of the fixed function blend unit. */ @@ -249,6 +251,9 @@ protected: bool fUseDrawInsteadOfClear : 1; bool fUseDrawInsteadOfPartialRenderTargetWrite : 1; + // ANGLE workaround + bool fPreferVRAMUseOverFlushes : 1; + BlendEquationSupport fBlendEquationSupport; uint32_t fAdvBlendEqBlacklist; GR_STATIC_ASSERT(kLast_GrBlendEquation < 32); |