diff options
author | Raph Levien <raph@google.com> | 2012-07-18 15:35:55 -0700 |
---|---|---|
committer | Raph Levien <raph@google.com> | 2012-07-18 15:40:44 -0700 |
commit | 4f3c8f7026d89a5d79e2621eb6428d5b9b1a25f3 (patch) | |
tree | 18eab6f97900bc87dceca9332dc1d083610d0853 /core/jni | |
parent | 0734102f445407b90b16e8e9232ebdc29fe817c4 (diff) | |
download | frameworks_base-4f3c8f7026d89a5d79e2621eb6428d5b9b1a25f3.zip frameworks_base-4f3c8f7026d89a5d79e2621eb6428d5b9b1a25f3.tar.gz frameworks_base-4f3c8f7026d89a5d79e2621eb6428d5b9b1a25f3.tar.bz2 |
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
Diffstat (limited to 'core/jni')
-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 37747bf..9b9b991 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]); |