diff options
Diffstat (limited to 'libs/hwui/Matrix.cpp')
-rw-r--r-- | libs/hwui/Matrix.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/Matrix.cpp b/libs/hwui/Matrix.cpp index 5cec5a83c9a2..2d017dfd0691 100644 --- a/libs/hwui/Matrix.cpp +++ b/libs/hwui/Matrix.cpp @@ -39,6 +39,11 @@ static const float EPSILON = 0.0000001f; // Matrix /////////////////////////////////////////////////////////////////////////////// +const Matrix4& Matrix4::identity() { + static Matrix4 sIdentity; + return sIdentity; +} + void Matrix4::loadIdentity() { data[kScaleX] = 1.0f; data[kSkewY] = 0.0f; |