diff options
author | 2015-07-10 12:58:53 +0000 | |
---|---|---|
committer | 2015-07-10 12:58:53 +0000 | |
commit | 434b577fa7c42115d24c1cc9b13c698bc3b0860c (patch) | |
tree | b9cfd06294aa460ad4c089338d67ac7a35c275d6 /libs/hwui/OpenGLRenderer.cpp | |
parent | 7478bc13084c1d3ab798116c7194c142aab2b4e2 (diff) | |
parent | 8ac76504feb4837ea524b2e62a0bd04c1e266d9a (diff) |
am 8ac76504: am 9613e9b7: Merge "New setLocalMatrix() operation for HWUI" into mnc-dev
* commit '8ac76504feb4837ea524b2e62a0bd04c1e266d9a':
New setLocalMatrix() operation for HWUI
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index ed2a4db9ea05..2292ef415cfc 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -2148,6 +2148,7 @@ void OpenGLRenderer::restoreToCount(int saveCount) { mState.restoreToCount(saveCount); } + void OpenGLRenderer::translate(float dx, float dy, float dz) { mState.translate(dx, dy, dz); } @@ -2168,6 +2169,11 @@ void OpenGLRenderer::setMatrix(const Matrix4& matrix) { mState.setMatrix(matrix); } +void OpenGLRenderer::setLocalMatrix(const SkMatrix& matrix) { + mState.setMatrix(mBaseTransform); + mState.concatMatrix(matrix); +} + void OpenGLRenderer::concatMatrix(const Matrix4& matrix) { mState.concatMatrix(matrix); } |