protected Float getCacheHeight(BaseDanmaku danmaku, Paint paint) {
Float textSize = Float.valueOf(paint.getTextSize());
Float textHeight = (Float) sTextHeightCache.get(textSize);
if (textHeight != null) {
return textHeight;
}
FontMetrics fontMetrics = paint.getFontMetrics();
textHeight = Float.valueOf((fontMetrics.descent - fontMetrics.ascent) + fontMetrics.leading);
sTextHeightCache.put(textSize, textHeight);
return textHeight;
}
SimpleTextCacheStuffer.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:letv
作者:
评论列表
文章目录