Index: ui/gfx/gl/gl_bindings.h |
diff --git a/ui/gfx/gl/gl_bindings.h b/ui/gfx/gl/gl_bindings.h |
index 7987fd83d190f3523d877681c815d8602e5207a1..6d947caca6932221123f783d6836a28ea0d995dd 100644 |
--- a/ui/gfx/gl/gl_bindings.h |
+++ b/ui/gfx/gl/gl_bindings.h |
@@ -41,6 +41,11 @@ |
#endif |
#define GL_SERVICE_LOG(args) DLOG(INFO) << args; |
+#if !defined(NDEBUG) |
+ #define GL_SERVICE_LOG_CODE_BLOCK(code) |
+#else |
+ #define GL_SERVICE_LOG_CODE_BLOCK(code) code |
+#endif |
// Forward declare OSMesa types. |
typedef struct osmesa_context *OSMesaContext; |