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

Side by Side Diff: cc/gl_renderer.h

Issue 11192030: cc: Switch to Chromium DCHECKs LOGs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dcheck and ndebug 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 | Annotate | Revision Log
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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« cc/checkerboard_draw_quad.cc ('K') | « cc/frame_rate_counter.cc ('k') | cc/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698