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

Side by Side Diff: cc/output/gl_renderer.h

Issue 14600002: HW draw workarounds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove hack in r199444 Created 7 years, 7 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 #ifndef CC_OUTPUT_GL_RENDERER_H_ 5 #ifndef CC_OUTPUT_GL_RENDERER_H_
6 #define CC_OUTPUT_GL_RENDERER_H_ 6 #define CC_OUTPUT_GL_RENDERER_H_
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/base/scoped_ptr_vector.h" 10 #include "cc/base/scoped_ptr_vector.h"
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; 418 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_;
419 419
420 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 420 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
421 }; 421 };
422 422
423 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL 423 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL
424 // call made by the compositor. Useful for debugging rendering issues but 424 // call made by the compositor. Useful for debugging rendering issues but
425 // will significantly degrade performance. 425 // will significantly degrade performance.
426 #define DEBUG_GL_CALLS 0 426 #define DEBUG_GL_CALLS 0
427 427
428 #if DEBUG_GL_CALLS && !defined(NDEBUG) 428 #if DEBUG_GL_CALLS
429 #define GLC(context, x) \ 429 #define GLC(context, x) \
430 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 430 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
431 #else 431 #else
432 #define GLC(context, x) (x) 432 #define GLC(context, x) (x)
433 #endif 433 #endif
434 434
435 } // namespace cc 435 } // namespace cc
436 436
437 #endif // CC_OUTPUT_GL_RENDERER_H_ 437 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698