commit | 3533ff10c715eb4e12657c0752a55013ae6c4b07 | [log] [tgz] |
---|---|---|
author | Ethan Nicholas <ethannicholas@google.com> | Mon Aug 02 12:53:29 2021 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Mon Aug 02 18:12:47 2021 +0000 |
tree | a9acd9cbfcf009635c4c1473d8b2d9e103805414 | |
parent | 66b500a07cddd85d8fe5441d73cf1f161b0ebfce [diff] [blame] |
Converted InterfaceBlock name to string_view Change-Id: I1d64165b43bc956d0f965fe55f29eebb37a8dbd6 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/433002 Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
diff --git a/src/sksl/codegen/SkSLMetalCodeGenerator.h b/src/sksl/codegen/SkSLMetalCodeGenerator.h index b0a75a2..7fdd793 100644 --- a/src/sksl/codegen/SkSLMetalCodeGenerator.h +++ b/src/sksl/codegen/SkSLMetalCodeGenerator.h
@@ -272,7 +272,7 @@ std::unordered_set<skstd::string_view> fReservedWords; std::unordered_map<const Type::Field*, const InterfaceBlock*> fInterfaceBlockMap; - std::unordered_map<const InterfaceBlock*, String> fInterfaceBlockNameMap; + std::unordered_map<const InterfaceBlock*, skstd::string_view> fInterfaceBlockNameMap; int fAnonInterfaceCount = 0; int fPaddingCount = 0; const char* fLineEnding;