diff options
author | Raph Levien <raph@google.com> | 2012-06-25 14:29:52 -0700 |
---|---|---|
committer | Raph Levien <raph@google.com> | 2012-06-25 14:29:52 -0700 |
commit | 6212a4f2ed2a5921de08b527cd1b25e1d155e56b (patch) | |
tree | f5f3dbb3e65117003e296f0066435ccc17af1c33 /core/jni/android/graphics/TextLayoutCache.cpp | |
parent | c436c17c9d34a077aae8b7249eab2af6e0d7e492 (diff) | |
download | frameworks_base-6212a4f2ed2a5921de08b527cd1b25e1d155e56b.zip frameworks_base-6212a4f2ed2a5921de08b527cd1b25e1d155e56b.tar.gz frameworks_base-6212a4f2ed2a5921de08b527cd1b25e1d155e56b.tar.bz2 |
Fix broken build when DEBUG_GLYPHS is set
Some of the logging lines referred to the "path" variable which no
longer exists. We log the Harfbuzz script instead, which hopefully
provides enough context.
This change only affects debug builds, but we will want to be working
intensively in this space.
Change-Id: I86c3b58c9fa2a8c47812ef5f0b5ce64fd8dcdc20
Diffstat (limited to 'core/jni/android/graphics/TextLayoutCache.cpp')
-rw-r--r-- | core/jni/android/graphics/TextLayoutCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/android/graphics/TextLayoutCache.cpp b/core/jni/android/graphics/TextLayoutCache.cpp index 5da4a09..6e12b95 100644 --- a/core/jni/android/graphics/TextLayoutCache.cpp +++ b/core/jni/android/graphics/TextLayoutCache.cpp @@ -966,13 +966,13 @@ SkTypeface* TextLayoutShaper::getCachedTypeface(SkTypeface** typeface, HB_Script // CreateFromFile(path) can return NULL if the path is non existing if (!*typeface) { #if DEBUG_GLYPHS - ALOGD("Font path '%s' is not valid, will use default font", path); + ALOGD("No font for Harfbuzz script %d, will use default font", script); #endif return mDefaultTypeface; } (*typeface)->ref(); #if DEBUG_GLYPHS - ALOGD("Created SkTypeface from file '%s' with uniqueID = %d", path, (*typeface)->uniqueID()); + ALOGD("Created SkTypeface for Harfbuzz script %d with uniqueID = %d", script, (*typeface)->uniqueID()); #endif } return *typeface; |