Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(703)

Unified Diff: cc/output/gl_renderer.h

Issue 1065463002: cc: Remove GLC macro (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/geometry_binding.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index 16962f2ac18f673f725d3c5b4deb3e43dc334374..8dcabf9f4d042ba9fed5ca46e86f29c4f27bec65 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -68,11 +68,6 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
virtual bool IsContextLost();
- static void DebugGLCall(gpu::gles2::GLES2Interface* gl,
- const char* command,
- const char* file,
- int line);
-
protected:
GLRenderer(RendererClient* client,
const RendererSettings* settings,
@@ -517,18 +512,6 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
DISALLOW_COPY_AND_ASSIGN(GLRenderer);
};
-// Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL
-// call made by the compositor. Useful for debugging rendering issues but
-// will significantly degrade performance.
-#define DEBUG_GL_CALLS 0
-
-#if DEBUG_GL_CALLS && !defined(NDEBUG)
-#define GLC(context, x) \
- (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
-#else
-#define GLC(context, x) (x)
-#endif
-
} // namespace cc
#endif // CC_OUTPUT_GL_RENDERER_H_
« no previous file with comments | « cc/output/geometry_binding.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698