Migrate VarDeclaration conversion out of IRGenerator.
Change-Id: If5fb4f99d327bb429f60e8d6c526720dd02b0928
Bug: skia:11342
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/386800
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/sksl/SkSLCompiler.h b/src/sksl/SkSLCompiler.h
index 9a1f5ae..d0f7077 100644
--- a/src/sksl/SkSLCompiler.h
+++ b/src/sksl/SkSLCompiler.h
@@ -74,8 +74,9 @@
*/
class SK_API Compiler : public ErrorReporter {
public:
- static constexpr const char* RTADJUST_NAME = "sk_RTAdjust";
- static constexpr const char* PERVERTEX_NAME = "sk_PerVertex";
+ static constexpr const char FRAGCOLOR_NAME[] = "sk_FragColor";
+ static constexpr const char RTADJUST_NAME[] = "sk_RTAdjust";
+ static constexpr const char PERVERTEX_NAME[] = "sk_PerVertex";
struct OptimizationContext {
// nodes we have already reported errors for and should not error on again