diff options
author | Ashok Bhat <ashok.bhat@arm.com> | 2014-01-13 20:44:05 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-01-28 17:53:30 +0000 |
commit | 5753b45516607988d5e84fee448d020911dde5d1 (patch) | |
tree | 885e89e9d10c1c0623fc456d4e724261068cb6f8 /graphics | |
parent | a0398430fcf365fba6e42ad0bdca2fbf45ed6fe0 (diff) | |
download | frameworks_base-5753b45516607988d5e84fee448d020911dde5d1.zip frameworks_base-5753b45516607988d5e84fee448d020911dde5d1.tar.gz frameworks_base-5753b45516607988d5e84fee448d020911dde5d1.tar.bz2 |
AArch64: Use long for pointers in graphics/Camera
For storing pointers, long is used in
android/graphics/Camera class, as native
pointers can be 64-bit.
In addition, some minor changes have been done
to conform with standard JNI practice (e.g. use of
jint instead of int in JNI function prototypes)
Change-Id: Ic05ebf2051a225a1638a43f476bab6176c0b5c38
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Camera.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/graphics/java/android/graphics/Camera.java b/graphics/java/android/graphics/Camera.java index 9e07bd4..c263a84 100644 --- a/graphics/java/android/graphics/Camera.java +++ b/graphics/java/android/graphics/Camera.java @@ -159,7 +159,7 @@ public class Camera { } public native float dotWithNormal(float dx, float dy, float dz); - + protected void finalize() throws Throwable { try { nativeDestructor(); @@ -170,8 +170,8 @@ public class Camera { private native void nativeConstructor(); private native void nativeDestructor(); - private native void nativeGetMatrix(int native_matrix); - private native void nativeApplyToCanvas(int native_canvas); - - int native_instance; + private native void nativeGetMatrix(long native_matrix); + private native void nativeApplyToCanvas(long native_canvas); + + long native_instance; } |