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

Unified Diff: include/gpu/GrContextOptions.h

Issue 2335343008: Add optional sw generated path coverage mask caching (Closed)
Patch Set: Add .fs to literals in new gm Created 4 years, 3 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 | « gm/pathmaskcache.cpp ('k') | src/gpu/GrContext.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 a9c85615fea8571fd352bcf82bbdb9e09e1e001e..85e1e428444c0a31bccc11a93bb53856e10b8734 100644
--- a/include/gpu/GrContextOptions.h
+++ b/include/gpu/GrContextOptions.h
@@ -69,6 +69,19 @@ struct GrContextOptions {
/** Disables distance field rendering for paths. Distance field computation can be expensive
and yields no benefit if a path is not rendered multiple times with different transforms */
bool fDisableDistanceFieldPaths = false;
+
+ /**
+ * If true this allows path mask textures to be cached. This is only really useful if paths
+ * are commonly rendered at the same scale and fractional translation.
+ */
+ bool fAllowPathMaskCaching = false;
+
+ /**
+ * Force all path draws to go through through the sw-rasterize-to-texture code path (assuming
+ * the path is not recognized as a simpler shape (e.g. a rrect). This is intended for testing
+ * purposes.
+ */
+ bool fForceSWPathMasks = false;
};
#endif
« no previous file with comments | « gm/pathmaskcache.cpp ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698