diff options
author | Romain Guy <romainguy@android.com> | 2010-06-26 00:16:20 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-06-26 00:16:20 -0700 |
commit | 1d58b498de5eb3b53ca0c7ffd14b1c209833d297 (patch) | |
tree | d3e53cea2f92f346b825136a5bc3bdfc01da4a4e /libs/hwui/Matrix.cpp | |
parent | 30683b2ad0754cc834ccdc07829dbf5b46563b0b (diff) | |
parent | bd6b79b40247aea7bfe13d0831c6c0472df6c636 (diff) |
Merge "Add implementations for saveLayerAlpha() and textured rects."
Diffstat (limited to 'libs/hwui/Matrix.cpp')
-rw-r--r-- | libs/hwui/Matrix.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/hwui/Matrix.cpp b/libs/hwui/Matrix.cpp index c772f003f014..e9c7791677c9 100644 --- a/libs/hwui/Matrix.cpp +++ b/libs/hwui/Matrix.cpp @@ -97,6 +97,14 @@ void Matrix4::copyTo(float* v) const { memcpy(v, data, sizeof(data)); } +float Matrix4::getTranslateX() { + return data[12]; +} + +float Matrix4::getTranslateY() { + return data[13]; +} + void Matrix4::loadTranslate(float x, float y, float z) { loadIdentity(); data[12] = x; |