diff options
| author | Narayan Kamath <narayan@google.com> | 2014-01-29 09:38:37 +0000 |
|---|---|---|
| committer | Narayan Kamath <narayan@google.com> | 2014-01-29 09:42:29 +0000 |
| commit | e55bc7f1575fc5dacac70c4cb209e6aa0c582e71 (patch) | |
| tree | b37dc116244df6462c9196d666a66c304c26bb93 /core/jni/android/graphics/Path.cpp | |
| parent | 2b033dce9f252ae30ac88c9ba1569d18afaaf2cf (diff) | |
| download | frameworks_base-e55bc7f1575fc5dacac70c4cb209e6aa0c582e71.zip frameworks_base-e55bc7f1575fc5dacac70c4cb209e6aa0c582e71.tar.gz frameworks_base-e55bc7f1575fc5dacac70c4cb209e6aa0c582e71.tar.bz2 | |
Path.native_trim should return long, not int.
Change-Id: Idafc4c58eb86ad1af614d31f8cb05216bd869482
Diffstat (limited to 'core/jni/android/graphics/Path.cpp')
| -rw-r--r-- | core/jni/android/graphics/Path.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/jni/android/graphics/Path.cpp b/core/jni/android/graphics/Path.cpp index c4d728f..76a0554 100644 --- a/core/jni/android/graphics/Path.cpp +++ b/core/jni/android/graphics/Path.cpp @@ -516,7 +516,7 @@ public: return result; } - static SkPathMeasure* trim(JNIEnv* env, jobject clazz, jlong inPathPtr, jlong outPathPtr, + static jlong trim(JNIEnv* env, jobject clazz, jlong inPathPtr, jlong outPathPtr, jlong pathMeasurePtr, jfloat trimStart, jfloat trimEnd, jfloat trimOffset) { SkPath* inPath = reinterpret_cast<SkPath*>(inPathPtr); SkPath* outPath = reinterpret_cast<SkPath*>(outPathPtr); @@ -525,7 +525,7 @@ public: if (outPath != NULL) { *outPath = *inPath; } - return pathMeasure; + return reinterpret_cast<jlong>(pathMeasure); } bool modifyPath = (outPath == NULL); @@ -557,7 +557,7 @@ public: *inPath = *outPath; delete outPath; } - return pathMeasure; + return reinterpret_cast<jlong>(pathMeasure); } static void destroyMeasure(JNIEnv* env, jobject clazz, jlong measure) { @@ -606,7 +606,7 @@ static JNINativeMethod methods[] = { {"native_op","(JJIJ)Z", (void*) SkPathGlue::op}, {"native_approximate", "(JF)[F", (void*) SkPathGlue::approximate}, {"native_destroyMeasure","(J)V", (void*) SkPathGlue::destroyMeasure}, - {"native_trim","(JJJFFF)I", (void*) SkPathGlue::trim}, + {"native_trim","(JJJFFF)J", (void*) SkPathGlue::trim}, }; int register_android_graphics_Path(JNIEnv* env) { |
