mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 830881 - Wrap debug functions in MOZ_ENABLE_GL_TRACKING define. r=vlad
This commit is contained in:
parent
f14b69bc1d
commit
2113fcf9db
@ -2810,8 +2810,7 @@ GLContext::TexSubImage2DWithoutUnpackSubimage(GLenum target, GLint level,
|
||||
fPixelStorei(LOCAL_GL_UNPACK_ALIGNMENT, 4);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
#ifdef MOZ_ENABLE_GL_TRACKING
|
||||
void
|
||||
GLContext::CreatedProgram(GLContext *aOrigin, GLuint aName)
|
||||
{
|
||||
|
@ -42,6 +42,10 @@
|
||||
#include "mozilla/GenericRefCounted.h"
|
||||
#include "mozilla/Scoped.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#define MOZ_ENABLE_GL_TRACKING 1
|
||||
#endif
|
||||
|
||||
class nsIntRegion;
|
||||
class nsIRunnable;
|
||||
class nsIThread;
|
||||
@ -583,7 +587,7 @@ private:
|
||||
#undef BEFORE_GL_CALL
|
||||
#undef AFTER_GL_CALL
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef MOZ_ENABLE_GL_TRACKING
|
||||
|
||||
#ifndef MOZ_FUNCTION_NAME
|
||||
# ifdef __GNUC__
|
||||
@ -2380,14 +2384,14 @@ public:
|
||||
|
||||
virtual bool MakeCurrentImpl(bool aForce = false) = 0;
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef MOZ_ENABLE_GL_TRACKING
|
||||
static void StaticInit() {
|
||||
PR_NewThreadPrivateIndex(&sCurrentGLContextTLS, nullptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
bool MakeCurrent(bool aForce = false) {
|
||||
#ifdef DEBUG
|
||||
#ifdef MOZ_ENABLE_GL_TRACKING
|
||||
PR_SetThreadPrivate(sCurrentGLContextTLS, this);
|
||||
|
||||
// XXX this assertion is disabled because it's triggering on Mac;
|
||||
@ -3242,7 +3246,7 @@ public:
|
||||
|
||||
#undef ASSERT_SYMBOL_PRESENT
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef MOZ_ENABLE_GL_TRACKING
|
||||
void CreatedProgram(GLContext *aOrigin, GLuint aName);
|
||||
void CreatedShader(GLContext *aOrigin, GLuint aName);
|
||||
void CreatedBuffers(GLContext *aOrigin, GLsizei aCount, GLuint *aNames);
|
||||
|
Loading…
Reference in New Issue
Block a user