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