Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1025)

Side by Side Diff: cc/gl_renderer.h

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/frame_rate_counter.cc ('k') | cc/gl_renderer.cc » ('j') | cc/yuv_video_draw_quad.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698