OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 #ifndef CCRendererGL_h | 6 #ifndef CCRendererGL_h |
7 #define CCRendererGL_h | 7 #define CCRendererGL_h |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "CCCheckerboardDrawQuad.h" | 10 #include "CCCheckerboardDrawQuad.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 217 |
218 DISALLOW_COPY_AND_ASSIGN(CCRendererGL); | 218 DISALLOW_COPY_AND_ASSIGN(CCRendererGL); |
219 }; | 219 }; |
220 | 220 |
221 | 221 |
222 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL | 222 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL |
223 // call made by the compositor. Useful for debugging rendering issues but | 223 // call made by the compositor. Useful for debugging rendering issues but |
224 // will significantly degrade performance. | 224 // will significantly degrade performance. |
225 #define DEBUG_GL_CALLS 0 | 225 #define DEBUG_GL_CALLS 0 |
226 | 226 |
227 #if DEBUG_GL_CALLS && !defined ( NDEBUG ) | 227 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
228 #define GLC(context, x) (x, CCRendererGL::debugGLCall(&*context, #x, __FILE__, _
_LINE__)) | 228 #define GLC(context, x) (x, CCRendererGL::debugGLCall(&*context, #x, __FILE__, _
_LINE__)) |
229 #else | 229 #else |
230 #define GLC(context, x) (x) | 230 #define GLC(context, x) (x) |
231 #endif | 231 #endif |
232 | 232 |
233 | 233 |
234 } | 234 } |
235 | 235 |
236 #endif | 236 #endif |
OLD | NEW |