diff options
author | Chet Haase <chet@google.com> | 2012-02-21 13:43:44 -0800 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2012-03-12 15:41:48 -0700 |
commit | a1cff5043d0fbd78fcf9c48e7658e56a5b0c2de3 (patch) | |
tree | 01a809b1ae5a50b8721f05c540a76570794d828c /graphics | |
parent | bdc5afeee57a943adac3896297fab74b96b307c1 (diff) | |
download | frameworks_base-a1cff5043d0fbd78fcf9c48e7658e56a5b0c2de3.zip frameworks_base-a1cff5043d0fbd78fcf9c48e7658e56a5b0c2de3.tar.gz frameworks_base-a1cff5043d0fbd78fcf9c48e7658e56a5b0c2de3.tar.bz2 |
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
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Camera.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Camera.java b/graphics/java/android/graphics/Camera.java index 7ef35a9..6f71a2b 100644 --- a/graphics/java/android/graphics/Camera.java +++ b/graphics/java/android/graphics/Camera.java @@ -100,6 +100,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. * |