Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: include/gpu/GrCaps.h

Issue 1287193008: Add ANGLE workaround to prefer flushes over VRAM usage (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update comment Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrCaps.cpp » ('j') | src/gpu/GrCaps.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrCaps.h
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 48bcb28c4dfa21db368dbc6124126f1aaddea835..248135d691f20fa3d82884a1b8449ee5ff7e5d54 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);
« no previous file with comments | « no previous file | src/gpu/GrCaps.cpp » ('j') | src/gpu/GrCaps.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698