19 std::string_view
name,
20 std::string_view behaviorText) {
26 if (behaviorText ==
"disable") {
30 if (behaviorText !=
"require" && behaviorText !=
"enable" && behaviorText !=
"warn") {
31 context.
fErrors->
error(
pos,
"expected 'require', 'enable', 'warn', or 'disable'");
40 std::string_view
name) {
42 return std::make_unique<SkSL::Extension>(
pos,
name);
void error(Position position, std::string_view msg)
static std::unique_ptr< Extension > Convert(const Context &context, Position pos, std::string_view name, std::string_view behaviorText)
std::string_view name() const
static std::unique_ptr< Extension > Make(const Context &context, Position pos, std::string_view name)
DEF_SWITCHES_START aot vmservice shared library name
static bool IsRuntimeEffect(ProgramKind kind)