summaryrefslogtreecommitdiff
path: root/libs/hwui/OpenGLRenderer.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2016-01-21 22:08:44 +0000
committer android-build-merger <android-build-merger@google.com> 2016-01-21 22:08:44 +0000
commit32a95af029636e4d067c818d3ff1262574d88bbf (patch)
tree851a8dc0ce419534beab3e861d82e9c0e5e3785f /libs/hwui/OpenGLRenderer.cpp
parentcaf53acdd7d4d1c2ec4d5678aa9b6a1c5c1340f8 (diff)
parent550d46d9dae8a4de5abd36a5e2d3c101135da696 (diff)
Merge "libhwui: fix texture memory leak"
am: 550d46d9da * commit '550d46d9dae8a4de5abd36a5e2d3c101135da696': libhwui: fix texture memory leak
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r--libs/hwui/OpenGLRenderer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index 9621b545fada..5233a2377d7f 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -1699,6 +1699,7 @@ void OpenGLRenderer::drawPatch(const SkBitmap* bitmap, const Patch* mesh,
Texture* texture = entry ? entry->texture : mCaches.textureCache.get(bitmap);
if (!texture) return;
+ const AutoTexture autoCleanup(texture);
// 9 patches are built for stretching - always filter
int textureFillFlags = TextureFillFlags::ForceFilter;