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