diff options
author | Romain Guy <romainguy@google.com> | 2010-10-13 13:40:37 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-10-13 13:40:37 -0700 |
commit | 41030da16856c8869e1e51d4a0405432fa96614e (patch) | |
tree | e40b599f2961989c444e5ca1bb92536eef76b7ba /graphics | |
parent | 2b67ce7213501d4377e46f67656993914eceb423 (diff) | |
download | frameworks_base-41030da16856c8869e1e51d4a0405432fa96614e.zip frameworks_base-41030da16856c8869e1e51d4a0405432fa96614e.tar.gz frameworks_base-41030da16856c8869e1e51d4a0405432fa96614e.tar.bz2 |
Add a getNativeMatrix() API.
This API can be used by WebView to apply the appropriate transform
on its rendering.
Change-Id: I79aa39a29805f462fb08226370328815e74bdc52
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Canvas.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java index 952f2b5..07fe66c 100644 --- a/graphics/java/android/graphics/Canvas.java +++ b/graphics/java/android/graphics/Canvas.java @@ -447,6 +447,16 @@ public class Canvas { public void getMatrix(Matrix ctm) { native_getCTM(mNativeCanvas, ctm.native_instance); } + + /** + * Returns a pointer to an internal 4x4 native matrix. The returned + * pointer is a pointer to an array of 16 floats. + * + * @hide + */ + public int getNativeMatrix() { + return 0; + } /** * Return a new matrix with a copy of the canvas' current transformation |