diff options
author | Brian Osman <brianosman@google.com> | 2017-08-29 16:15:39 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-29 20:41:01 +0000 |
commit | b350ae24d5356ac094982aee2f45c90216db35db (patch) | |
tree | be744c46ec713ef6bbbe805b9c55d60273db1401 /include/gpu | |
parent | 1d8c42eb903b66035ecf4d45b03dfeb1ad07b957 (diff) |
Add GrContextOption to disable distance field path renderer
We're going to hide the path renderer bitfield behind a testing-only flag,
but clients may want to suppress this path renderer in particular, so a
dedicated flag makes sense.
Bug: skia:
Change-Id: I6cc4049243b5d3c129a824dfe7c1a65a70a05ccd
Reviewed-on: https://skia-review.googlesource.com/40083
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrContextOptions.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h index b94b5cee5f..471195a589 100644 --- a/include/gpu/GrContextOptions.h +++ b/include/gpu/GrContextOptions.h @@ -56,6 +56,12 @@ struct GrContextOptions { bool fEnableInstancedRendering = false; /** + * 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. */ |