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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 bool is_viewport_changed_; | 394 bool is_viewport_changed_; |
395 bool is_backbuffer_discarded_; | 395 bool is_backbuffer_discarded_; |
396 bool discard_backbuffer_when_not_visible_; | 396 bool discard_backbuffer_when_not_visible_; |
397 bool is_using_bind_uniform_; | 397 bool is_using_bind_uniform_; |
398 bool visible_; | 398 bool visible_; |
399 bool is_scissor_enabled_; | 399 bool is_scissor_enabled_; |
400 bool blend_shadow_; | 400 bool blend_shadow_; |
401 unsigned program_shadow_; | 401 unsigned program_shadow_; |
402 TexturedQuadDrawCache draw_cache_; | 402 TexturedQuadDrawCache draw_cache_; |
403 int highp_threshold_min_; | 403 int highp_threshold_min_; |
| 404 int highp_threshold_cache_; |
404 | 405 |
405 struct PendingAsyncReadPixels; | 406 struct PendingAsyncReadPixels; |
406 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_; | 407 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_; |
407 | 408 |
408 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; | 409 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; |
409 | 410 |
410 scoped_refptr<ResourceProvider::Fence> last_swap_fence_; | 411 scoped_refptr<ResourceProvider::Fence> last_swap_fence_; |
411 | 412 |
412 SkBitmap on_demand_tile_raster_bitmap_; | 413 SkBitmap on_demand_tile_raster_bitmap_; |
413 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; | 414 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; |
414 | 415 |
415 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 416 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
416 }; | 417 }; |
417 | 418 |
418 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL | 419 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL |
419 // call made by the compositor. Useful for debugging rendering issues but | 420 // call made by the compositor. Useful for debugging rendering issues but |
420 // will significantly degrade performance. | 421 // will significantly degrade performance. |
421 #define DEBUG_GL_CALLS 0 | 422 #define DEBUG_GL_CALLS 0 |
422 | 423 |
423 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 424 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
424 #define GLC(context, x) \ | 425 #define GLC(context, x) \ |
425 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 426 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
426 #else | 427 #else |
427 #define GLC(context, x) (x) | 428 #define GLC(context, x) (x) |
428 #endif | 429 #endif |
429 | 430 |
430 } // namespace cc | 431 } // namespace cc |
431 | 432 |
432 #endif // CC_OUTPUT_GL_RENDERER_H_ | 433 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |