Fabric: Enabling new TextMeasureCache thing for Android

Summary:
Read more about this in D18848583 (where it's implemented for iOS). This diff enables that for Android.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D18869823

fbshipit-source-id: ebdc863ec07268119d1cbbb911760532bb28ee04
This commit is contained in:
Valentin Shergin authored and Facebook Github Bot committed 2019-12-07 22:47:49 -08:00
1 parent 0ef0d3167e
commit 36d895ce21
2 files changed
+4 -11

No files matched your search

@@ -29,8 +29,8 @@ Size TextLayoutManager::measure(
auto &attributedString = attributedStringBox.getValue();
return measureCache_.get(
MeasureCacheKey{attributedString, paragraphAttributes, layoutConstraints},
[&](MeasureCacheKey const &key) {
{attributedString, paragraphAttributes, layoutConstraints},
[&](TextMeasureCacheKey const &key) {
return doMeasure(
attributedString, paragraphAttributes, layoutConstraints);
});