Re-initialize the 9patch cache if cleared with onTrimMemory
The 9aptch cache was reinitialized after destroying/recreating
the EGL context but not after clearing it during a normal
memory trim.
Change-Id: If6155bfc8a62439e9878bc742a4766b3bd6c6aec
diff --git a/libs/hwui/PatchCache.h b/libs/hwui/PatchCache.h
index 129a0dc..530dad0 100644
--- a/libs/hwui/PatchCache.h
+++ b/libs/hwui/PatchCache.h
@@ -121,9 +121,10 @@
uint32_t mMaxSize;
uint32_t mSize;
- LruCache<PatchDescription, Patch*> mCache;
GLuint mMeshBuffer;
+
+ LruCache<PatchDescription, Patch*> mCache;
}; // class PatchCache
}; // namespace uirenderer