From 7a0ebfc033463907e2088401972d14ea8589cdb5 Mon Sep 17 00:00:00 2001 From: Chris Dalton Date: Fri, 13 Oct 2017 12:35:50 -0600 Subject: Add a tooling flag for path mask caching Adds the flag and a disables caching on the CCPR bots. Bug: skia: Change-Id: Icb85e77f89634dda1d419dacac5b8a93340723f0 Reviewed-on: https://skia-review.googlesource.com/59740 Reviewed-by: Eric Boren Reviewed-by: Brian Osman Commit-Queue: Chris Dalton --- tools/skpbench/skpbench.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/skpbench') diff --git a/tools/skpbench/skpbench.cpp b/tools/skpbench/skpbench.cpp index c0ead46155..ef7a5bbabf 100644 --- a/tools/skpbench/skpbench.cpp +++ b/tools/skpbench/skpbench.cpp @@ -10,6 +10,7 @@ #include "SkGr.h" #include "SkCanvas.h" +#include "SkCommonFlags.h" #include "SkCommonFlagsPathRenderer.h" #include "SkOSFile.h" #include "SkOSPath.h" @@ -277,6 +278,7 @@ int main(int argc, char** argv) { // Create a context. GrContextOptions ctxOptions; ctxOptions.fGpuPathRenderers = CollectGpuPathRenderersFromFlags(); + ctxOptions.fAllowPathMaskCaching = FLAGS_cachePathMasks; sk_gpu_test::GrContextFactory factory(ctxOptions); sk_gpu_test::ContextInfo ctxInfo = factory.getContextInfo(config->getContextType(), config->getContextOverrides()); -- cgit v1.2.3