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

Commit 5448f037 authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

TextLayoutCache Fix compilation issue

- fix compilation after refactoring and when setting DEBUG_ADVANCES to 1

Change-Id: I8eef7e3c4550c505325459948d3c8eebbdd5215a
parent a90d6526
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -368,7 +368,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
}

@@ -602,13 +602,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

@@ -628,7 +629,9 @@ void TextLayoutEngine::computeRunValues(SkPaint* paint, const UChar* chars,
            }
        }
    }

    *outTotalAdvance = totalAdvance;

#if DEBUG_GLYPHS
    LOGD("-------- End of Script Run --------");
#endif