diff options
| author | 2013-12-10 12:28:58 -0500 | |
|---|---|---|
| committer | 2014-05-29 16:51:23 -0400 | |
| commit | 139088228faa7f3c446af7387e017933998a5570 (patch) | |
| tree | 33b24be0cb5793d47f77fe9eee5beceb772e6cd0 /libs/hwui/OpenGLRenderer.cpp | |
| parent | 1015efb143b51a5d31f2f932528f295cfa1add1f (diff) | |
Update HWUI matrix API
1. more closely mirror Skia API by using const ref instead of ptrs
2. store SkMatrix in the drawOp instead of the linear allocation heap
Change-Id: I4b9f6f76b9f7d19325e29303d27b793679fd4823
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
| -rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 71836dd5ab3b..cd09f862b575 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -2042,10 +2042,10 @@ status_t OpenGLRenderer::drawBitmap(const SkBitmap* bitmap, float left, float to      return DrawGlInfo::kStatusDrew;  } -status_t OpenGLRenderer::drawBitmap(const SkBitmap* bitmap, const SkMatrix* matrix, +status_t OpenGLRenderer::drawBitmap(const SkBitmap* bitmap, const SkMatrix& matrix,          const SkPaint* paint) {      Rect r(0.0f, 0.0f, bitmap->width(), bitmap->height()); -    const mat4 transform(*matrix); +    const mat4 transform(matrix);      transform.mapRect(r);      if (quickRejectSetupScissor(r.left, r.top, r.right, r.bottom)) {  |