diff options
| author | Romain Guy <romainguy@google.com> | 2010-06-23 17:47:49 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2010-06-23 17:47:49 -0700 |
| commit | f6a11b8a9e25ff9861bbba19251bea84d8a5daf2 (patch) | |
| tree | c44f214f59f2206de152585d97b23e2bfaa1b3b0 /graphics/java/android | |
| parent | bb9524b6bdddc7ac77d8628daa8b366b8a7be4a4 (diff) | |
| download | frameworks_base-f6a11b8a9e25ff9861bbba19251bea84d8a5daf2.zip frameworks_base-f6a11b8a9e25ff9861bbba19251bea84d8a5daf2.tar.gz frameworks_base-f6a11b8a9e25ff9861bbba19251bea84d8a5daf2.tar.bz2 | |
Add support for transformations.
This change adds partial support for the following transforms:
- scale()
- translate()
- rotate()
- setMatrix()
- getMatrix()
The transform is stored in a snapshot and saved/restored as needed.
The transform is currently not applied to the clip rect and is not
mapped to the vertex shader.
Change-Id: Id48993453311200804149917d0c126a4d0471226
Diffstat (limited to 'graphics/java/android')
| -rw-r--r-- | graphics/java/android/graphics/Matrix.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/Matrix.java b/graphics/java/android/graphics/Matrix.java index f549900..b336995 100644 --- a/graphics/java/android/graphics/Matrix.java +++ b/graphics/java/android/graphics/Matrix.java @@ -37,7 +37,10 @@ public class Matrix { public static final int MPERSP_1 = 7; //!< use with getValues/setValues public static final int MPERSP_2 = 8; //!< use with getValues/setValues - /* package */ int native_instance; + /** + * @hide + */ + public int native_instance; /** * Create an identity matrix |
