OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32fb630
)
Add missing requireGlContext
author
John Reck
<jreck@google.com>
Mon, 7 Jul 2014 16:16:54 +0000
(09:16 -0700)
committer
John Reck
<jreck@google.com>
Mon, 7 Jul 2014 18:05:00 +0000
(18:05 +0000)
Change-Id: I7100e5e9986f502f66a23ecea07a6057522c43ac
libs/hwui/renderthread/CanvasContext.cpp
patch
|
blob
|
history
diff --git
a/libs/hwui/renderthread/CanvasContext.cpp
b/libs/hwui/renderthread/CanvasContext.cpp
index
524ee62
..
f5d4f8b
100644
(file)
--- 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();