diff options
author | Romain Guy <romainguy@google.com> | 2013-06-21 18:37:56 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-06-21 18:37:56 +0000 |
commit | 64d592129e4f5231f61ac2b6055e1b37f8c0ebb6 (patch) | |
tree | 8e56629d2d87b17c93e170d5059da540552ff099 /libs/hwui | |
parent | b38d53dacb4289bd96e1dbfa6211ffa734281c57 (diff) | |
parent | 16ea8d373b03b1e115dd505af70dbee4e3a3a182 (diff) | |
download | frameworks_base-64d592129e4f5231f61ac2b6055e1b37f8c0ebb6.zip frameworks_base-64d592129e4f5231f61ac2b6055e1b37f8c0ebb6.tar.gz frameworks_base-64d592129e4f5231f61ac2b6055e1b37f8c0ebb6.tar.bz2 |
Merge "Refcount the paint used by Canvas.drawPatch()"
Diffstat (limited to 'libs/hwui')
-rw-r--r-- | libs/hwui/DisplayListRenderer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/DisplayListRenderer.cpp b/libs/hwui/DisplayListRenderer.cpp index 41b1507..5d23e1d 100644 --- a/libs/hwui/DisplayListRenderer.cpp +++ b/libs/hwui/DisplayListRenderer.cpp @@ -318,6 +318,7 @@ status_t DisplayListRenderer::drawBitmapMesh(SkBitmap* bitmap, int meshWidth, in status_t DisplayListRenderer::drawPatch(SkBitmap* bitmap, Res_png_9patch* patch, float left, float top, float right, float bottom, SkPaint* paint) { bitmap = refBitmap(bitmap); + paint = refPaint(paint); addDrawOp(new (alloc()) DrawPatchOp(bitmap, patch, left, top, right, bottom, paint)); return DrawGlInfo::kStatusDone; |