mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
0ef0d3167e
commit
36d895ce21
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user