diff options
author | Chris Craik <ccraik@google.com> | 2014-05-08 13:57:05 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-05-08 13:57:05 -0700 |
commit | e4aa95e3627226bcb0d8cc3e42dca6e4df8f421c (patch) | |
tree | c55de52d9180486924bfd5ca87450fcee4858d2d /libs/hwui/OpenGLRenderer.cpp | |
parent | a2604b738e7298fd926482ec5d94356b37a0d807 (diff) | |
download | frameworks_base-e4aa95e3627226bcb0d8cc3e42dca6e4df8f421c.zip frameworks_base-e4aa95e3627226bcb0d8cc3e42dca6e4df8f421c.tar.gz frameworks_base-e4aa95e3627226bcb0d8cc3e42dca6e4df8f421c.tar.bz2 |
Add logging utility methods
Change-Id: I0f316830dcc0bbf438292a6d0fbe9f8154368500
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 87b07b3..5a977c8 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -37,6 +37,7 @@ #include "PathTessellator.h" #include "Properties.h" #include "ShadowTessellator.h" +#include "utils/GLUtils.h" #include "Vector.h" #include "VertexBuffer.h" @@ -296,24 +297,7 @@ void OpenGLRenderer::finish() { if (!suppressErrorChecks()) { #if DEBUG_OPENGL - GLenum status = GL_NO_ERROR; - while ((status = glGetError()) != GL_NO_ERROR) { - ALOGD("GL error from OpenGLRenderer: 0x%x", status); - switch (status) { - case GL_INVALID_ENUM: - ALOGE(" GL_INVALID_ENUM"); - break; - case GL_INVALID_VALUE: - ALOGE(" GL_INVALID_VALUE"); - break; - case GL_INVALID_OPERATION: - ALOGE(" GL_INVALID_OPERATION"); - break; - case GL_OUT_OF_MEMORY: - ALOGE(" Out of memory!"); - break; - } - } + GLUtils::dumpGLErrors(); #endif #if DEBUG_MEMORY_USAGE |