summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorVictoria Lease <violets@google.com>2013-02-15 00:15:29 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-02-15 00:15:29 +0000
commitc69bce2e41c70da35e1b6a2ab5ec44469ab14c80 (patch)
treef782881e1cea43ad956f4789e162ea56a87c2bf6 /core
parent9d40d8720d422fc39068e7b0b0ae6f13621c3de1 (diff)
parentb61fb10fe435b74a761e82f517abd0320f22193e (diff)
downloadframeworks_base-c69bce2e41c70da35e1b6a2ab5ec44469ab14c80.zip
frameworks_base-c69bce2e41c70da35e1b6a2ab5ec44469ab14c80.tar.gz
frameworks_base-c69bce2e41c70da35e1b6a2ab5ec44469ab14c80.tar.bz2
Merge "fix argument mismatches in Paint JNI"
Diffstat (limited to 'core')
-rw-r--r--core/jni/android/graphics/Paint.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/jni/android/graphics/Paint.cpp b/core/jni/android/graphics/Paint.cpp
index e830492..07f55e0 100644
--- a/core/jni/android/graphics/Paint.cpp
+++ b/core/jni/android/graphics/Paint.cpp
@@ -548,7 +548,7 @@ public:
}
static jint doTextRunCursor(JNIEnv *env, SkPaint* paint, const jchar *text, jint start,
- jint count, jint flags, jint offset, jint opt) {
+ jint count, jint offset, jint opt) {
jfloat scalarArray[count];
TextLayout::getTextRunAdvances(paint, text, start, count, start + count,
@@ -592,19 +592,19 @@ public:
}
static jint getTextRunCursor___C(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text,
- jint contextStart, jint contextCount, jint flags, jint offset, jint cursorOpt) {
+ jint contextStart, jint contextCount, jint offset, jint cursorOpt) {
jchar* textArray = env->GetCharArrayElements(text, NULL);
- jint result = doTextRunCursor(env, paint, textArray, contextStart, contextCount, flags,
+ jint result = doTextRunCursor(env, paint, textArray, contextStart, contextCount,
offset, cursorOpt);
env->ReleaseCharArrayElements(text, textArray, JNI_ABORT);
return result;
}
static jint getTextRunCursor__String(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text,
- jint contextStart, jint contextEnd, jint flags, jint offset, jint cursorOpt) {
+ jint contextStart, jint contextEnd, jint offset, jint cursorOpt) {
const jchar* textArray = env->GetStringChars(text, NULL);
jint result = doTextRunCursor(env, paint, textArray, contextStart,
- contextEnd - contextStart, flags, offset, cursorOpt);
+ contextEnd - contextStart, offset, cursorOpt);
env->ReleaseStringChars(text, textArray);
return result;
}