diff options
| author | 2012-07-18 15:35:55 -0700 | |
|---|---|---|
| committer | 2012-07-18 15:40:44 -0700 | |
| commit | 4f3c8f7026d89a5d79e2621eb6428d5b9b1a25f3 (patch) | |
| tree | 18eab6f97900bc87dceca9332dc1d083610d0853 | |
| parent | 0734102f445407b90b16e8e9232ebdc29fe817c4 (diff) | |
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
| -rw-r--r-- | core/jni/android/graphics/TextLayoutCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android/graphics/TextLayoutCache.cpp b/core/jni/android/graphics/TextLayoutCache.cpp index 37747bff0705..9b9b9919f5f4 100644 --- a/core/jni/android/graphics/TextLayoutCache.cpp +++ b/core/jni/android/graphics/TextLayoutCache.cpp @@ -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]); |