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

Commit 868d1bdf authored by Fabrice Di Meglio's avatar Fabrice Di Meglio Committed by Android (Google) Code Review
Browse files

Merge "TextLayoutCache Fix compilation issue"

parents 3d53e57e 5448f037
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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