diff options
| author | 2011-12-02 16:21:14 -0800 | |
|---|---|---|
| committer | 2011-12-02 16:21:14 -0800 | |
| commit | 868d1bdf3c01dbdcf15b780db72d1c9a3022829f (patch) | |
| tree | ddc90c88ba0bd358f52bc93262813e45a6f46ece | |
| parent | 3d53e57e31535b8422ec22013e4a2d7ef6ea7249 (diff) | |
| parent | 5448f0378ede9c5d33e7300fa318ef4a6925562f (diff) | |
Merge "TextLayoutCache Fix compilation issue"
| -rw-r--r-- | core/jni/android/graphics/TextLayoutCache.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/jni/android/graphics/TextLayoutCache.cpp b/core/jni/android/graphics/TextLayoutCache.cpp index 9c0ecaa628d1..d69f2d34f301 100644 --- a/core/jni/android/graphics/TextLayoutCache.cpp +++ b/core/jni/android/graphics/TextLayoutCache.cpp @@ -364,7 +364,7 @@ void TextLayoutEngine::computeValues(TextLayoutCacheValue* value, SkPaint* paint &value->mAdvances, &value->mTotalAdvance, &value->mGlyphs); #if DEBUG_ADVANCES LOGD("Advances - start = %d, count = %d, contextCount = %d, totalAdvance = %f", start, count, - contextCount, mTotalAdvance); + contextCount, value->mTotalAdvance); #endif } @@ -598,13 +598,14 @@ void TextLayoutEngine::computeRunValues(SkPaint* paint, const UChar* chars, outAdvances->add(currentAdvance); } } + totalAdvance += totalFontRunAdvance; #if DEBUG_ADVANCES LOGD("Returned advances"); for (size_t i = 0; i < countScriptRun; i++) { LOGD(" -- hb-adv[%d] = %f, log_clusters = %d, total = %f", i, - (*outAdvances)[i], shaperItem.log_clusters[i], totalFontRunAdvance); + (*outAdvances)[i], mShaperItem.log_clusters[i], totalFontRunAdvance); } #endif @@ -624,7 +625,9 @@ void TextLayoutEngine::computeRunValues(SkPaint* paint, const UChar* chars, } } } + *outTotalAdvance = totalAdvance; + #if DEBUG_GLYPHS LOGD("-------- End of Script Run --------"); #endif |