| 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 #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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; | 430 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; |
| 431 | 431 |
| 432 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 432 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 433 }; | 433 }; |
| 434 | 434 |
| 435 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL | 435 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL |
| 436 // call made by the compositor. Useful for debugging rendering issues but | 436 // call made by the compositor. Useful for debugging rendering issues but |
| 437 // will significantly degrade performance. | 437 // will significantly degrade performance. |
| 438 #define DEBUG_GL_CALLS 0 | 438 #define DEBUG_GL_CALLS 0 |
| 439 | 439 |
| 440 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 440 #if DEBUG_GL_CALLS |
| 441 #define GLC(context, x) \ | 441 #define GLC(context, x) \ |
| 442 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 442 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 443 #else | 443 #else |
| 444 #define GLC(context, x) (x) | 444 #define GLC(context, x) (x) |
| 445 #endif | 445 #endif |
| 446 | 446 |
| 447 } // namespace cc | 447 } // namespace cc |
| 448 | 448 |
| 449 #endif // CC_OUTPUT_GL_RENDERER_H_ | 449 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |