| 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_deque.h" | 10 #include "cc/base/scoped_ptr_deque.h" |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_; | 433 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_; |
| 434 | 434 |
| 435 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; | 435 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; |
| 436 | 436 |
| 437 class SyncQuery; | 437 class SyncQuery; |
| 438 ScopedPtrDeque<SyncQuery> pending_sync_queries_; | 438 ScopedPtrDeque<SyncQuery> pending_sync_queries_; |
| 439 ScopedPtrDeque<SyncQuery> available_sync_queries_; | 439 ScopedPtrDeque<SyncQuery> available_sync_queries_; |
| 440 scoped_ptr<SyncQuery> current_sync_query_; | 440 scoped_ptr<SyncQuery> current_sync_query_; |
| 441 bool use_sync_query_; | 441 bool use_sync_query_; |
| 442 bool use_blend_minmax_; | 442 bool use_blend_minmax_; |
| 443 bool use_blend_equation_advanced_; |
| 443 | 444 |
| 444 SkBitmap on_demand_tile_raster_bitmap_; | 445 SkBitmap on_demand_tile_raster_bitmap_; |
| 445 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; | 446 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; |
| 446 | 447 |
| 447 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 448 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 448 }; | 449 }; |
| 449 | 450 |
| 450 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL | 451 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL |
| 451 // call made by the compositor. Useful for debugging rendering issues but | 452 // call made by the compositor. Useful for debugging rendering issues but |
| 452 // will significantly degrade performance. | 453 // will significantly degrade performance. |
| 453 #define DEBUG_GL_CALLS 0 | 454 #define DEBUG_GL_CALLS 0 |
| 454 | 455 |
| 455 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 456 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 456 #define GLC(context, x) \ | 457 #define GLC(context, x) \ |
| 457 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 458 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 458 #else | 459 #else |
| 459 #define GLC(context, x) (x) | 460 #define GLC(context, x) (x) |
| 460 #endif | 461 #endif |
| 461 | 462 |
| 462 } // namespace cc | 463 } // namespace cc |
| 463 | 464 |
| 464 #endif // CC_OUTPUT_GL_RENDERER_H_ | 465 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |