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 "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 #include "cc/output/direct_renderer.h" | 9 #include "cc/output/direct_renderer.h" |
10 #include "cc/output/gl_renderer_draw_cache.h" | 10 #include "cc/output/gl_renderer_draw_cache.h" |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 bool is_viewport_changed_; | 370 bool is_viewport_changed_; |
371 bool is_backbuffer_discarded_; | 371 bool is_backbuffer_discarded_; |
372 bool discard_backbuffer_when_not_visible_; | 372 bool discard_backbuffer_when_not_visible_; |
373 bool is_using_bind_uniform_; | 373 bool is_using_bind_uniform_; |
374 bool visible_; | 374 bool visible_; |
375 bool is_scissor_enabled_; | 375 bool is_scissor_enabled_; |
376 bool blend_shadow_; | 376 bool blend_shadow_; |
377 unsigned program_shadow_; | 377 unsigned program_shadow_; |
378 TexturedQuadDrawCache draw_cache_; | 378 TexturedQuadDrawCache draw_cache_; |
379 int highp_threshold_min_; | 379 int highp_threshold_min_; |
| 380 int highp_threshold_cache_; |
380 | 381 |
381 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; | 382 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; |
382 | 383 |
383 scoped_refptr<ResourceProvider::Fence> last_swap_fence_; | 384 scoped_refptr<ResourceProvider::Fence> last_swap_fence_; |
384 | 385 |
385 SkBitmap on_demand_tile_raster_bitmap_; | 386 SkBitmap on_demand_tile_raster_bitmap_; |
386 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; | 387 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; |
387 | 388 |
388 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 389 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
389 }; | 390 }; |
390 | 391 |
391 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL | 392 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL |
392 // call made by the compositor. Useful for debugging rendering issues but | 393 // call made by the compositor. Useful for debugging rendering issues but |
393 // will significantly degrade performance. | 394 // will significantly degrade performance. |
394 #define DEBUG_GL_CALLS 0 | 395 #define DEBUG_GL_CALLS 0 |
395 | 396 |
396 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 397 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
397 #define GLC(context, x) \ | 398 #define GLC(context, x) \ |
398 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 399 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
399 #else | 400 #else |
400 #define GLC(context, x) (x) | 401 #define GLC(context, x) (x) |
401 #endif | 402 #endif |
402 | 403 |
403 } // namespace cc | 404 } // namespace cc |
404 | 405 |
405 #endif // CC_OUTPUT_GL_RENDERER_H_ | 406 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |