From 040238bded7b932b916c84912cbaec1207aa29c0 Mon Sep 17 00:00:00 2001 From: Chris Dalton Date: Mon, 18 Dec 2017 14:22:34 -0700 Subject: Add a tools flag to suppress geometry shaders Bug: skia: Change-Id: I38736c5d49e3b281c2d23af3908575274ff97b5c Reviewed-on: https://skia-review.googlesource.com/86282 Reviewed-by: Brian Salomon Reviewed-by: Brian Osman Commit-Queue: Chris Dalton --- tools/skpbench/skpbench.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tools/skpbench/skpbench.cpp') diff --git a/tools/skpbench/skpbench.cpp b/tools/skpbench/skpbench.cpp index ef7a5bbabf..fcab2d3af8 100644 --- a/tools/skpbench/skpbench.cpp +++ b/tools/skpbench/skpbench.cpp @@ -11,7 +11,7 @@ #include "SkCanvas.h" #include "SkCommonFlags.h" -#include "SkCommonFlagsPathRenderer.h" +#include "SkCommonFlagsGpu.h" #include "SkOSFile.h" #include "SkOSPath.h" #include "SkPerlinNoiseShader.h" @@ -50,7 +50,6 @@ DEFINE_string(skp, "", "path to a single .skp file, or 'warmup' for a builtin wa DEFINE_string(png, "", "if set, save a .png proof to disk at this file location"); DEFINE_int32(verbosity, 4, "level of verbosity (0=none to 5=debug)"); DEFINE_bool(suppressHeader, false, "don't print a header row before the results"); -DEFINE_pathrenderer_flag; static const char* header = " accum median max min stddev samples sample_ms clock metric config bench"; @@ -277,8 +276,7 @@ int main(int argc, char** argv) { // Create a context. GrContextOptions ctxOptions; - ctxOptions.fGpuPathRenderers = CollectGpuPathRenderersFromFlags(); - ctxOptions.fAllowPathMaskCaching = FLAGS_cachePathMasks; + SetCtxOptionsFromCommonFlags(&ctxOptions); sk_gpu_test::GrContextFactory factory(ctxOptions); sk_gpu_test::ContextInfo ctxInfo = factory.getContextInfo(config->getContextType(), config->getContextOverrides()); -- cgit v1.2.3