Home
last modified time | relevance | path

Searched refs:skmetrics (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/hwui/jni/
DGraphics.cpp487 void GraphicsJNI::set_metrics(JNIEnv* env, jobject metrics, const SkFontMetrics& skmetrics) { in set_metrics() argument
490 env->SetFloatField(metrics, gFontMetrics_top, SkScalarToFloat(skmetrics.fTop)); in set_metrics()
491 env->SetFloatField(metrics, gFontMetrics_ascent, SkScalarToFloat(skmetrics.fAscent)); in set_metrics()
492 env->SetFloatField(metrics, gFontMetrics_descent, SkScalarToFloat(skmetrics.fDescent)); in set_metrics()
493 env->SetFloatField(metrics, gFontMetrics_bottom, SkScalarToFloat(skmetrics.fBottom)); in set_metrics()
494 env->SetFloatField(metrics, gFontMetrics_leading, SkScalarToFloat(skmetrics.fLeading)); in set_metrics()
497 int GraphicsJNI::set_metrics_int(JNIEnv* env, jobject metrics, const SkFontMetrics& skmetrics) { in set_metrics_int() argument
498 int ascent = SkScalarRoundToInt(skmetrics.fAscent); in set_metrics_int()
499 int descent = SkScalarRoundToInt(skmetrics.fDescent); in set_metrics_int()
500 int leading = SkScalarRoundToInt(skmetrics.fLeading); in set_metrics_int()
[all …]
DGraphicsJNI.h100 static void set_metrics(JNIEnv*, jobject metrics, const SkFontMetrics& skmetrics);
105 static int set_metrics_int(JNIEnv*, jobject metrics, const SkFontMetrics& skmetrics);