Rename cache warmer to glyph warmer
Summary: This feels like a better name. Reviewed By: kdelong Differential Revision: D3943277
This commit is contained in:
parent
fc10d0d3bf
commit
1297a4a82b
|
@ -22,7 +22,7 @@ import com.facebook.csslayout.CSSNodeAPI;
|
|||
import com.facebook.csslayout.MeasureOutput;
|
||||
import com.facebook.csslayout.Spacing;
|
||||
import com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder;
|
||||
import com.facebook.fbui.textlayoutbuilder.cachewarmer.DefaultTextLayoutCacheWarmer;
|
||||
import com.facebook.fbui.textlayoutbuilder.glyphwarmer.GlyphWarmerImpl;
|
||||
import com.facebook.react.bridge.JSApplicationIllegalArgumentException;
|
||||
import com.facebook.react.uimanager.PixelUtil;
|
||||
import com.facebook.react.uimanager.ViewDefaults;
|
||||
|
@ -48,7 +48,7 @@ import com.facebook.react.uimanager.annotations.ReactProp;
|
|||
new TextLayoutBuilder()
|
||||
.setShouldCacheLayout(false)
|
||||
.setShouldWarmText(true)
|
||||
.setCacheWarmer(new DefaultTextLayoutCacheWarmer());
|
||||
.setGlyphWarmer(new GlyphWarmerImpl());
|
||||
|
||||
private @Nullable CharSequence mText;
|
||||
private @Nullable DrawTextLayout mDrawCommand;
|
||||
|
|
Loading…
Reference in New Issue