Add a flag for suppressing tessellation shaders

Change-Id: Ic29618c5eac9b3eed92ce0321162745645240d6c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/285142
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/tools/flags/CommonFlags.h b/tools/flags/CommonFlags.h
index 63c5889..000fdfa 100644
--- a/tools/flags/CommonFlags.h
+++ b/tools/flags/CommonFlags.h
@@ -28,7 +28,8 @@
  *  Helper to set GrContextOptions from common GPU flags, including
  *     --gpuThreads
  *     --cachePathMasks
- *     --noGS
+ *     --(no)gs
+ *     --(no)ts
  *     --pr
  *     --internalSamples
  *     --disableDriverCorrectnessWorkarounds
diff --git a/tools/flags/CommonFlagsGpu.cpp b/tools/flags/CommonFlagsGpu.cpp
index b5110e55..b00bf88 100644
--- a/tools/flags/CommonFlagsGpu.cpp
+++ b/tools/flags/CommonFlagsGpu.cpp
@@ -17,7 +17,8 @@
 static DEFINE_bool(cachePathMasks, true,
                    "Allows path mask textures to be cached in GPU configs.");
 
-static DEFINE_bool(noGS, false, "Disables support for geometry shaders.");
+static DEFINE_bool(gs, true, "Enables support for geometry shaders (if hw allows).");
+static DEFINE_bool(ts, true, "Enables support for tessellation shaders (if hw allows.).");
 
 static DEFINE_bool(cc, false, "Allow coverage counting shortcuts to render paths?");
 
@@ -90,7 +91,8 @@
     ctxOptions->fExecutor                            = gGpuExecutor.get();
     ctxOptions->fDisableCoverageCountingPaths        = !FLAGS_cc;
     ctxOptions->fAllowPathMaskCaching                = FLAGS_cachePathMasks;
-    ctxOptions->fSuppressGeometryShaders             = FLAGS_noGS;
+    ctxOptions->fSuppressGeometryShaders             = !FLAGS_gs;
+    ctxOptions->fSuppressTessellationShaders         = !FLAGS_ts;
     ctxOptions->fGpuPathRenderers                    = collect_gpu_path_renderers_from_flags();
     ctxOptions->fInternalMultisampleCount            = FLAGS_internalSamples;
     ctxOptions->fDisableDriverCorrectnessWorkarounds = FLAGS_disableDriverCorrectnessWorkarounds;