Move strictES2Mode method to ProgramConfig.

This will help us migrate code out of IRGenerator.

Change-Id: Id9c70cc4577ed41b2fc5ad26f752caea13a56083
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/372437
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
diff --git a/src/sksl/SkSLProgramSettings.h b/src/sksl/SkSLProgramSettings.h
index ad98888..bc13775 100644
--- a/src/sksl/SkSLProgramSettings.h
+++ b/src/sksl/SkSLProgramSettings.h
@@ -79,6 +79,10 @@
 struct ProgramConfig {
     ProgramKind fKind;
     ProgramSettings fSettings;
+
+    bool strictES2Mode() const {
+        return fKind == ProgramKind::kRuntimeEffect || fKind == ProgramKind::kGeneric;
+    }
 };
 
 }  // namespace SkSL