Removed StringFragment alias in favor of skstd::string_view
Change-Id: I026a8a6b452d4cb8adce4d5d4908aaf2e71f2555
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417516
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
diff --git a/src/sksl/codegen/SkSLSPIRVCodeGenerator.h b/src/sksl/codegen/SkSLSPIRVCodeGenerator.h
index d8c9b73..cefdfca 100644
--- a/src/sksl/codegen/SkSLSPIRVCodeGenerator.h
+++ b/src/sksl/codegen/SkSLSPIRVCodeGenerator.h
@@ -397,19 +397,20 @@
void writeWord(int32_t word, OutputStream& out);
- void writeString(StringFragment s, OutputStream& out);
+ void writeString(skstd::string_view s, OutputStream& out);
void writeLabel(SpvId id, OutputStream& out);
void writeInstruction(SpvOp_ opCode, OutputStream& out);
- void writeInstruction(SpvOp_ opCode, StringFragment string, OutputStream& out);
+ void writeInstruction(SpvOp_ opCode, skstd::string_view string, OutputStream& out);
void writeInstruction(SpvOp_ opCode, int32_t word1, OutputStream& out);
- void writeInstruction(SpvOp_ opCode, int32_t word1, StringFragment string, OutputStream& out);
+ void writeInstruction(SpvOp_ opCode, int32_t word1, skstd::string_view string,
+ OutputStream& out);
- void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, StringFragment string,
+ void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, skstd::string_view string,
OutputStream& out);
void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, OutputStream& out);