Chromium Code Reviews| Index: include/gpu/GrContextOptions.h |
| diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h |
| index a9c85615fea8571fd352bcf82bbdb9e09e1e001e..e2d71c3bd4850c4c5904659358bf81feb232c834 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 |
|
robertphillips
2016/09/21 15:42:39
with at -> at ?
bsalomon
2016/09/21 16:01:09
Done.
|
| + * are commonly rendered with 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 |