summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Caches.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-05-20 07:18:55 -0700
committerJohn Reck <jreck@google.com>2015-05-20 11:24:57 -0700
commitd7db4d767246b41d44995acb93d03d220b53c748 (patch)
tree653c8f5bb3026359be78c2d5083bd2c18f6d30ec /libs/hwui/Caches.cpp
parent97bf518f7b818d297a500204627d1ad06127bff1 (diff)
downloadframeworks_base-d7db4d767246b41d44995acb93d03d220b53c748.zip
frameworks_base-d7db4d767246b41d44995acb93d03d220b53c748.tar.gz
frameworks_base-d7db4d767246b41d44995acb93d03d220b53c748.tar.bz2
Eliminate requireGlContext
Bug: 20297820 Change-Id: I37c63bab6f6c0d2337c8c6002046d2ef17e74097
Diffstat (limited to 'libs/hwui/Caches.cpp')
-rw-r--r--libs/hwui/Caches.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp
index f75d6a0..1030451 100644
--- a/libs/hwui/Caches.cpp
+++ b/libs/hwui/Caches.cpp
@@ -23,6 +23,7 @@
#include "Properties.h"
#include "renderstate/RenderState.h"
#include "ShadowTessellator.h"
+#include "utils/GLUtils.h"
#include <utils/Log.h>
#include <utils/String8.h>
@@ -276,6 +277,9 @@ void Caches::flush(FlushMode mode) {
clearGarbage();
glFinish();
+ // Errors during cleanup should be considered non-fatal, dump them and
+ // and move on. TODO: All errors or just errors like bad surface?
+ GLUtils::dumpGLErrors();
}
///////////////////////////////////////////////////////////////////////////////