summaryrefslogtreecommitdiffstats
path: root/libs/hwui/OpenGLRenderer.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-07-09 18:53:25 -0700
committerRomain Guy <romainguy@google.com>2010-07-09 18:53:25 -0700
commit0b9db91c3dc8007b47c8fd4fb9dd85be97201a88 (patch)
treef8de431ac029c79d581e54b8ba52afe8a90e3e6b /libs/hwui/OpenGLRenderer.cpp
parent8445ca6c3ba9b7cee6d20f5919e3b3ba8e6b8c96 (diff)
downloadframeworks_base-0b9db91c3dc8007b47c8fd4fb9dd85be97201a88.zip
frameworks_base-0b9db91c3dc8007b47c8fd4fb9dd85be97201a88.tar.gz
frameworks_base-0b9db91c3dc8007b47c8fd4fb9dd85be97201a88.tar.bz2
Remove math from the vertex shader.
Change-Id: I02847a60a8734bf8b3d29ec12e76297795095e38
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r--libs/hwui/OpenGLRenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index 6d041ae..b783d3f 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -511,7 +511,7 @@ void OpenGLRenderer::drawColorRect(float left, float top, float right, float bot
mModelView.loadTranslate(left, top, 0.0f);
mModelView.scale(right - left, bottom - top, 1.0f);
- mDrawColorShader->use(&mOrthoMatrix[0], &mModelView.data[0], &mSnapshot->transform.data[0]);
+ mDrawColorShader->use(&mOrthoMatrix[0], mModelView, mSnapshot->transform);
const GLvoid* p = &gDrawColorVertices[0].position[0];
@@ -548,7 +548,7 @@ void OpenGLRenderer::drawTextureMesh(float left, float top, float right, float b
mModelView.loadTranslate(left, top, 0.0f);
mModelView.scale(right - left, bottom - top, 1.0f);
- mDrawTextureShader->use(&mOrthoMatrix[0], &mModelView.data[0], &mSnapshot->transform.data[0]);
+ mDrawTextureShader->use(&mOrthoMatrix[0], mModelView, mSnapshot->transform);
chooseBlending(blend || alpha < 1.0f, mode, isPremultiplied);