[graphite] Make some SkShaderCodeDictionary functions const and non-metal
Remove metal define from SkShaderCodeDictionary, have it be linked to
whether or not SKSL is enabled instead. Even though the generated sksl
is a little Metal specific, this allows graphite to built on non Macs.
Also makes functions const where possible.
Change-Id: I345de413f8049d94418f7519e35d156001677da6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/568581
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
4 files changed