Loading core/jni/android/graphics/Paint.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -1055,7 +1055,8 @@ public: // TODO performance: optimize JNI array access jchar* textArray = env->GetCharArrayElements(text, NULL); jfloat result = doRunAdvance(paint, typeface, textArray + contextStart, start - contextStart, end - start, contextEnd - contextStart, isRtl, offset); start - contextStart, end - start, contextEnd - contextStart, isRtl, offset - contextStart); env->ReleaseCharArrayElements(text, textArray, JNI_ABORT); return result; } Loading Loading
core/jni/android/graphics/Paint.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -1055,7 +1055,8 @@ public: // TODO performance: optimize JNI array access jchar* textArray = env->GetCharArrayElements(text, NULL); jfloat result = doRunAdvance(paint, typeface, textArray + contextStart, start - contextStart, end - start, contextEnd - contextStart, isRtl, offset); start - contextStart, end - start, contextEnd - contextStart, isRtl, offset - contextStart); env->ReleaseCharArrayElements(text, textArray, JNI_ABORT); return result; } Loading