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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 DISALLOW_COPY_AND_ASSIGN(CCRendererGL); | 219 DISALLOW_COPY_AND_ASSIGN(CCRendererGL); |
220 }; | 220 }; |
221 | 221 |
222 | 222 |
223 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL | 223 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL |
224 // call made by the compositor. Useful for debugging rendering issues but | 224 // call made by the compositor. Useful for debugging rendering issues but |
225 // will significantly degrade performance. | 225 // will significantly degrade performance. |
226 #define DEBUG_GL_CALLS 0 | 226 #define DEBUG_GL_CALLS 0 |
227 | 227 |
228 #if DEBUG_GL_CALLS && !defined ( NDEBUG ) | 228 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
229 #define GLC(context, x) (x, CCRendererGL::debugGLCall(&*context, #x, __FILE__, _
_LINE__)) | 229 #define GLC(context, x) (x, CCRendererGL::debugGLCall(&*context, #x, __FILE__, _
_LINE__)) |
230 #else | 230 #else |
231 #define GLC(context, x) (x) | 231 #define GLC(context, x) (x) |
232 #endif | 232 #endif |
233 | 233 |
234 | 234 |
235 } | 235 } |
236 | 236 |
237 #endif | 237 #endif |
OLD | NEW |