Fix missed tracing line; convert to if constexpr

Change-Id: I67d3e9e43ca3985acf6552a8f2edbbcf5f1abad4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/544236
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
Herb Derby 2022-05-26 10:00:13 -04:00 committed by SkCQ
parent 4f4f48150c
commit 89f4bd44ed

View File

@ -2766,9 +2766,9 @@ bool SkGlyphRunListPainter::CategorizeGlyphRunList(const SkGlyphRunList& glyphRu
auto [strikeSpec, strikeToSourceScale] =
SkStrikeSpec::MakePath(runFont, runPaint, deviceProps, scalerContextFlags);
#if defined(SK_TRACE_GLYPH_RUN_PROCESS)
if constexpr (kTrace) {
msg.appendf(" Path case:\n%s", strikeSpec.dump().c_str());
#endif
}
if (!SkScalarNearlyZero(strikeToSourceScale)) {
SkScopedStrikeForGPU strike = strikeSpec.findOrCreateScopedStrike(strikeCache);