aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-09-21 11:16:05 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-21 11:16:05 -0700
commit39ef7fb885d7be648b9f0ecd027bc400d1213cec (patch)
treedadf2a165d64b90cce680395b1c013e19c01bee7 /include
parent669983856d99b9312be3166b7dd1f8483a90c315 (diff)
Add optional sw generated path coverage mask caching
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2335343008 All the bots except the painfully slow windows compiler have finished so, NOTRY=true Review-Url: https://codereview.chromium.org/2335343008
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrContextOptions.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h
index a9c85615fe..85e1e42844 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