Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f3c8f70 authored by Raph Levien's avatar Raph Levien
Browse files

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
parent 0734102f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -726,7 +726,7 @@ void TextLayoutShaper::computeRunValues(const SkPaint* paint, const UChar* chars
                // set in the mFontRec.
                outPos->add(x + xo + yo * skewX);
                outPos->add(yo);
#ifdef DEBUG_GLYPHS
#if DEBUG_GLYPHS
                ALOGD("         -- hb adv[%d] = %f, log_cluster[%d] = %d",
                        index, HBFixedToFloat(mShaperItem.advances[index]),
                        index, mShaperItem.log_clusters[index]);