Fix soft merge conflict in SkRuntimeEffect
This meant that the new Shader/ColorFilter factories were always
compiling against the more lenient (old) rules.
Bug: skia:11813
Change-Id: I65038595edf2c6087aad6efcd27508338b24cce8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/398229
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/core/SkRuntimeEffect.cpp b/src/core/SkRuntimeEffect.cpp
index fc00e10..32d0411 100644
--- a/src/core/SkRuntimeEffect.cpp
+++ b/src/core/SkRuntimeEffect.cpp
@@ -134,12 +134,7 @@
settings.fInlineThreshold = 0;
settings.fForceNoInline = options.forceNoInline;
settings.fAllowNarrowingConversions = true;
- program = compiler->convertProgram(SkSL::ProgramKind::kRuntimeEffect,
- SkSL::String(sksl.c_str(), sksl.size()),
- settings);
- // TODO: Many errors aren't caught until we process the generated Program here. Catching those
- // in the IR generator would provide better errors messages (with locations).
- #define RETURN_FAILURE(...) return Result{nullptr, SkStringPrintf(__VA_ARGS__)}
+ program = compiler->convertProgram(kind, SkSL::String(sksl.c_str(), sksl.size()), settings);
if (!program) {
RETURN_FAILURE("%s", compiler->errorText().c_str());