Rename cache warmer to glyph warmer

Summary: This feels like a better name.

Reviewed By: kdelong

Differential Revision: D3943277
This commit is contained in:
Sriram Ramasubramanian 2016-09-29 02:02:09 -07:00 committed by Ahmed El-Helw
parent fc10d0d3bf
commit 1297a4a82b
1 changed files with 2 additions and 2 deletions

View File

@ -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;