From a1cff5043d0fbd78fcf9c48e7658e56a5b0c2de3 Mon Sep 17 00:00:00 2001 From: Chet Haase Date: Tue, 21 Feb 2012 13:43:44 -0800 Subject: Handle view properties at the native level Basic functionality of handling View properties (transforms, left/right/top/bottom, and alpha) at the native DisplayList level. This logic is disabled for now (via compile-time flags in View.java and DisplayListRenderer.h) as we continue work on it (there is no advantage to the new approach until we optimize invalidation and rendering paths to use the new code path). Change-Id: I370c8d21fbd291be415f55515ab8dced6f6d51a3 --- graphics/java/android/graphics/Camera.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'graphics/java') diff --git a/graphics/java/android/graphics/Camera.java b/graphics/java/android/graphics/Camera.java index 7ef35a925060..6f71a2bdb5d6 100644 --- a/graphics/java/android/graphics/Camera.java +++ b/graphics/java/android/graphics/Camera.java @@ -99,6 +99,27 @@ public class Camera { */ public native void rotate(float x, float y, float z); + /** + * Gets the x location of the camera. + * + * @see #setLocation(float, float, float) + */ + public native float getLocationX(); + + /** + * Gets the y location of the camera. + * + * @see #setLocation(float, float, float) + */ + public native float getLocationY(); + + /** + * Gets the z location of the camera. + * + * @see #setLocation(float, float, float) + */ + public native float getLocationZ(); + /** * Sets the location of the camera. The default location is set at * 0, 0, -8. -- cgit v1.2.3-59-g8ed1b