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