Remove caps member from SkSL::Compiler.

Instead, you can just pass the ShaderCaps to the code-generation
methods (`toGLSL`). We can decouple this because the front-end no
longer looks at the caps bits anywhere.

Change-Id: Ic75b79fef8ec1f71103937605848a702d1673c70
Bug: b/316916102
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/792656
Auto-Submit: John Stiles <[email protected]>
Commit-Queue: John Stiles <[email protected]>
Reviewed-by: Brian Osman <[email protected]>
diff --git a/tests/SkSLWGSLTestbed.cpp b/tests/SkSLWGSLTestbed.cpp
index d6c221b..83dcb77 100644
--- a/tests/SkSLWGSLTestbed.cpp
+++ b/tests/SkSLWGSLTestbed.cpp
@@ -19,7 +19,7 @@
 static void test(skiatest::Reporter* r,
                  const char* src,
                  SkSL::ProgramKind kind = SkSL::ProgramKind::kFragment) {
-    SkSL::Compiler compiler(SkSL::ShaderCapsFactory::Default());
+    SkSL::Compiler compiler;
     SkSL::ProgramSettings settings;
     std::unique_ptr<SkSL::Program> program = compiler.convertProgram(kind, std::string(src),
                                                                      settings);
@@ -28,7 +28,7 @@
         REPORTER_ASSERT(r, program);
     } else {
         std::string output;
-        REPORTER_ASSERT(r, compiler.toWGSL(*program, &output));
+        REPORTER_ASSERT(r, compiler.toWGSL(*program, SkSL::ShaderCapsFactory::Default(), &output));
         REPORTER_ASSERT(r, output != "");
         //SkDebugf("WGSL output:\n\n%s", output.c_str());
     }