Skip to content

Commit 4f3c8f7

Browse files
committed
Fix overly verbose logging in TextLayoutCache
I meant to log certain debug values only when DEBUG_GLYPHS was set, but I used #ifdef instead of #if (when it's not set, it's 0, rather than undefined). Change-Id: Ic27fee7dd355009c1873f0a2e12614849bbceebd
1 parent 0734102 commit 4f3c8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/jni/android/graphics/TextLayoutCache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ void TextLayoutShaper::computeRunValues(const SkPaint* paint, const UChar* chars
726726
// set in the mFontRec.
727727
outPos->add(x + xo + yo * skewX);
728728
outPos->add(yo);
729-
#ifdef DEBUG_GLYPHS
729+
#if DEBUG_GLYPHS
730730
ALOGD(" -- hb adv[%d] = %f, log_cluster[%d] = %d",
731731
index, HBFixedToFloat(mShaperItem.advances[index]),
732732
index, mShaperItem.log_clusters[index]);

0 commit comments

Comments
 (0)