commit | ca107c9b70f9594f88e8c594abde1d96dde55d42 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Fri Feb 19 09:54:44 2021 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Feb 19 18:09:27 2021 +0000 |
tree | 6a4974e86abf1fab7c4d42a703ce72925a24a91c | |
parent | b2705a1888fdae0093bfb9038a02b983a245866f [diff] [blame] |
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