summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-07-07 09:16:54 -0700
committerJohn Reck <jreck@google.com>2014-07-07 18:05:00 +0000
commit3c2b7fa8c584c5ed56f1bd6ad53f2e87f0a6eb44 (patch)
tree35cb70afd4fbf892716f65c4a8b1bff49eb33714 /libs
parent32fb6307de7c3ee9399a39dc6734f1c82ffd1dcb (diff)
downloadframeworks_base-3c2b7fa8c584c5ed56f1bd6ad53f2e87f0a6eb44.zip
frameworks_base-3c2b7fa8c584c5ed56f1bd6ad53f2e87f0a6eb44.tar.gz
frameworks_base-3c2b7fa8c584c5ed56f1bd6ad53f2e87f0a6eb44.tar.bz2
Add missing requireGlContext
Change-Id: I7100e5e9986f502f66a23ecea07a6057522c43ac
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp
index 524ee62..f5d4f8b 100644
--- a/libs/hwui/renderthread/CanvasContext.cpp
+++ b/libs/hwui/renderthread/CanvasContext.cpp
@@ -260,6 +260,7 @@ void CanvasContext::trimMemory(RenderThread& thread, int level) {
// No context means nothing to free
if (!thread.eglManager().hasEglContext()) return;
+ thread.eglManager().requireGlContext();
if (level >= TRIM_MEMORY_COMPLETE) {
Caches::getInstance().flush(Caches::kFlushMode_Full);
thread.eglManager().destroy();