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

Unified Diff: include/gpu/GrContextOptions.h

Issue 2182783004: Add test configs for instanced rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add test configs for instanced rendering Created 4 years, 5 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 | « include/gpu/GrCaps.h ('k') | src/gpu/GrCaps.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContextOptions.h
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h
index d5923a328007a9735f75d23a1fe81239412fb697..b274895a3798d5fa98f8ac643d2a91720199382b 100644
--- a/include/gpu/GrContextOptions.h
+++ b/include/gpu/GrContextOptions.h
@@ -24,7 +24,8 @@ struct GrContextOptions {
, fMaxBatchLookback(-1)
, fMaxBatchLookahead(-1)
, fUseShaderSwizzling(false)
- , fDoManualMipmapping(false) {}
+ , fDoManualMipmapping(false)
+ , fEnableInstancedRendering(false) {}
// Suppress prints for the GrContext.
bool fSuppressPrints;
@@ -73,6 +74,10 @@ struct GrContextOptions {
the driver's implementation (glGenerateMipmap) contains bugs. This requires mipmap
level and LOD control (ie desktop or ES3). */
bool fDoManualMipmapping;
+
+ /** Enable instanced rendering as long as all required functionality is supported by the HW.
+ Instanced rendering is still experimental at this point and disabled by default. */
+ bool fEnableInstancedRendering;
};
#endif
« no previous file with comments | « include/gpu/GrCaps.h ('k') | src/gpu/GrCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698