diff options
Diffstat (limited to 'libs/hwui/Matrix.cpp')
-rw-r--r-- | libs/hwui/Matrix.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/Matrix.cpp b/libs/hwui/Matrix.cpp index 264ad3d28077..c698b5abb9c5 100644 --- a/libs/hwui/Matrix.cpp +++ b/libs/hwui/Matrix.cpp @@ -144,6 +144,12 @@ float Matrix4::getTranslateY() { return data[kTranslateY]; } +void Matrix4::multiply(float v) { + for (int i = 0; i < 16; i++) { + data[i] *= v; + } +} + void Matrix4::loadTranslate(float x, float y, float z) { loadIdentity(); data[kTranslateX] = x; |