diff options
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. */ |