emulator: opengl: remove debug traces.

You can still re-enable them by uncommenting one line in
development/tools/emulator/opengl/Android.mk

Change-Id: Ie0a640b6f3359b437aba40b124da0892defb00ef
This commit is contained in:
David 'Digit' Turner
2011-08-23 16:59:35 +02:00
parent cecb6a0e36
commit 47cbdfb291
4 changed files with 17 additions and 5 deletions

View File

@@ -33,6 +33,10 @@ EMUGL_COMMON_INCLUDES := $(EMUGL_PATH)/host/include/libOpenglRender
# #
EMUGL_COMMON_CFLAGS := -DWITH_GLES2 EMUGL_COMMON_CFLAGS := -DWITH_GLES2
# Uncomment the following line if you want to enable debug traces
# in the GLES emulation libraries.
# EMUGL_COMMON_CFLAGS += -DEMUGL_DEBUG=1
# Include common definitions used by all the modules included later # Include common definitions used by all the modules included later
# in this build file. This contains the definition of all useful # in this build file. This contains the definition of all useful
# emugl-xxxx functions. # emugl-xxxx functions.

View File

@@ -43,7 +43,7 @@ int GL2Decoder::initGL(get_proc_func_t getProcFunc, void *getProcFuncData)
m_GL2library = osUtils::dynLibrary::open(libname); m_GL2library = osUtils::dynLibrary::open(libname);
if (m_GL2library == NULL) { if (m_GL2library == NULL) {
fprintf(stderr, "Couldn't find %s \n", libname); fprintf(stderr, "%s: Couldn't find %s \n", __FUNCTION__, libname);
return -1; return -1;
} }
this->initDispatchByName(s_getProc, this); this->initDispatchByName(s_getProc, this);
@@ -77,7 +77,7 @@ void GL2Decoder::s_glGetCompressedTextureFormats(void *self, int count, GLint *f
int nFormats; int nFormats;
ctx->glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &nFormats); ctx->glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &nFormats);
if (nFormats > count) { if (nFormats > count) {
fprintf(stderr, "GetCompressedTextureFormats: The requested number of formats does not match the number that is reported by OpenGL\n"); fprintf(stderr, "%s: GetCompressedTextureFormats: The requested number of formats does not match the number that is reported by OpenGL\n", __FUNCTION__);
} else { } else {
ctx->glGetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS, formats); ctx->glGetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS, formats);
} }

View File

@@ -103,7 +103,7 @@ int RenderServer::Main()
// insert the added thread to the list // insert the added thread to the list
threads.insert(rt); threads.insert(rt);
printf("Started new RenderThread\n"); DBG("Started new RenderThread\n");
} }
// //

View File

@@ -19,11 +19,19 @@
#if (HAVE_ANDROID_OS == 1) #if (HAVE_ANDROID_OS == 1)
# include <cutils/log.h> # include <cutils/log.h>
# define ERR(...) LOGE(__VA_ARGS__) # define ERR(...) LOGE(__VA_ARGS__)
# define DBG(...) LOGD(__VA_ARGS__) # ifdef EMUGL_DEBUG
# define DBG(...) LOGD(__VA_ARGS__)
# else
# define DBG(...) ((void)0)
# endif
#else #else
# include <stdio.h> # include <stdio.h>
# define ERR(...) fprintf(stderr, __VA_ARGS__) # define ERR(...) fprintf(stderr, __VA_ARGS__)
# define DBG(...) fprintf(stderr, __VA_ARGS__) # ifdef EMUGL_DEBUG
# define DBG(...) fprintf(stderr, __VA_ARGS__)
# else
# define DBG(...) ((void)0)
# endif
#endif #endif
#endif #endif