Report pending errors from MetalCodeGenerator

This mirrors the change in https://skia-review.googlesource.com/c/skia/+/441311,
but for Metal this time.

Change-Id: I1abdb844b6392c81252532f9ff4a91b993edb66e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/441401
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
Ethan Nicholas 2021-08-23 15:27:36 -04:00 committed by SkCQ
parent d77dda5bd5
commit 0f36d11c1d

View File

@ -2614,6 +2614,7 @@ bool MetalCodeGenerator::generateCode() {
write_stringstream(fExtraFunctionPrototypes, *fOut);
write_stringstream(fExtraFunctions, *fOut);
write_stringstream(body, *fOut);
fContext.fErrors->reportPendingErrors(PositionInfo());
return fContext.fErrors->errorCount() == 0;
}