| 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 <deque> | 8 #include <deque> |
| 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/cancelable_callback.h" | 11 #include "base/cancelable_callback.h" |
| 11 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
| 12 #include "cc/base/scoped_ptr_vector.h" | |
| 13 #include "cc/output/direct_renderer.h" | 13 #include "cc/output/direct_renderer.h" |
| 14 #include "cc/output/gl_renderer_draw_cache.h" | 14 #include "cc/output/gl_renderer_draw_cache.h" |
| 15 #include "cc/output/program_binding.h" | 15 #include "cc/output/program_binding.h" |
| 16 #include "cc/output/renderer.h" | 16 #include "cc/output/renderer.h" |
| 17 #include "cc/quads/debug_border_draw_quad.h" | 17 #include "cc/quads/debug_border_draw_quad.h" |
| 18 #include "cc/quads/io_surface_draw_quad.h" | 18 #include "cc/quads/io_surface_draw_quad.h" |
| 19 #include "cc/quads/render_pass_draw_quad.h" | 19 #include "cc/quads/render_pass_draw_quad.h" |
| 20 #include "cc/quads/solid_color_draw_quad.h" | 20 #include "cc/quads/solid_color_draw_quad.h" |
| 21 #include "cc/quads/tile_draw_quad.h" | 21 #include "cc/quads/tile_draw_quad.h" |
| 22 #include "cc/quads/yuv_video_draw_quad.h" | 22 #include "cc/quads/yuv_video_draw_quad.h" |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 void ReinitializeGLState(); | 252 void ReinitializeGLState(); |
| 253 void RestoreGLState(); | 253 void RestoreGLState(); |
| 254 void RestoreFramebuffer(DrawingFrame* frame); | 254 void RestoreFramebuffer(DrawingFrame* frame); |
| 255 | 255 |
| 256 void DiscardBackbuffer() override; | 256 void DiscardBackbuffer() override; |
| 257 void EnsureBackbuffer() override; | 257 void EnsureBackbuffer() override; |
| 258 void EnforceMemoryPolicy(); | 258 void EnforceMemoryPolicy(); |
| 259 | 259 |
| 260 void ScheduleOverlays(DrawingFrame* frame); | 260 void ScheduleOverlays(DrawingFrame* frame); |
| 261 | 261 |
| 262 typedef ScopedPtrVector<ResourceProvider::ScopedReadLockGL> | 262 using OverlayResourceLockList = |
| 263 OverlayResourceLockList; | 263 std::vector<scoped_ptr<ResourceProvider::ScopedReadLockGL>>; |
| 264 OverlayResourceLockList pending_overlay_resources_; | 264 OverlayResourceLockList pending_overlay_resources_; |
| 265 OverlayResourceLockList in_use_overlay_resources_; | 265 OverlayResourceLockList in_use_overlay_resources_; |
| 266 OverlayResourceLockList previous_swap_overlay_resources_; | 266 OverlayResourceLockList previous_swap_overlay_resources_; |
| 267 | 267 |
| 268 RendererCapabilitiesImpl capabilities_; | 268 RendererCapabilitiesImpl capabilities_; |
| 269 | 269 |
| 270 unsigned offscreen_framebuffer_id_; | 270 unsigned offscreen_framebuffer_id_; |
| 271 | 271 |
| 272 scoped_ptr<StaticGeometryBinding> shared_geometry_; | 272 scoped_ptr<StaticGeometryBinding> shared_geometry_; |
| 273 scoped_ptr<DynamicGeometryBinding> clipped_geometry_; | 273 scoped_ptr<DynamicGeometryBinding> clipped_geometry_; |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 bool is_scissor_enabled_; | 493 bool is_scissor_enabled_; |
| 494 bool scissor_rect_needs_reset_; | 494 bool scissor_rect_needs_reset_; |
| 495 bool stencil_shadow_; | 495 bool stencil_shadow_; |
| 496 bool blend_shadow_; | 496 bool blend_shadow_; |
| 497 unsigned program_shadow_; | 497 unsigned program_shadow_; |
| 498 TexturedQuadDrawCache draw_cache_; | 498 TexturedQuadDrawCache draw_cache_; |
| 499 int highp_threshold_min_; | 499 int highp_threshold_min_; |
| 500 int highp_threshold_cache_; | 500 int highp_threshold_cache_; |
| 501 | 501 |
| 502 struct PendingAsyncReadPixels; | 502 struct PendingAsyncReadPixels; |
| 503 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_; | 503 std::vector<scoped_ptr<PendingAsyncReadPixels>> pending_async_read_pixels_; |
| 504 | 504 |
| 505 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; | 505 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; |
| 506 | 506 |
| 507 class SyncQuery; | 507 class SyncQuery; |
| 508 std::deque<scoped_ptr<SyncQuery>> pending_sync_queries_; | 508 std::deque<scoped_ptr<SyncQuery>> pending_sync_queries_; |
| 509 std::deque<scoped_ptr<SyncQuery>> available_sync_queries_; | 509 std::deque<scoped_ptr<SyncQuery>> available_sync_queries_; |
| 510 scoped_ptr<SyncQuery> current_sync_query_; | 510 scoped_ptr<SyncQuery> current_sync_query_; |
| 511 bool use_sync_query_; | 511 bool use_sync_query_; |
| 512 bool use_blend_equation_advanced_; | 512 bool use_blend_equation_advanced_; |
| 513 bool use_blend_equation_advanced_coherent_; | 513 bool use_blend_equation_advanced_coherent_; |
| 514 | 514 |
| 515 SkBitmap on_demand_tile_raster_bitmap_; | 515 SkBitmap on_demand_tile_raster_bitmap_; |
| 516 ResourceId on_demand_tile_raster_resource_id_; | 516 ResourceId on_demand_tile_raster_resource_id_; |
| 517 BoundGeometry bound_geometry_; | 517 BoundGeometry bound_geometry_; |
| 518 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 518 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 519 }; | 519 }; |
| 520 | 520 |
| 521 } // namespace cc | 521 } // namespace cc |
| 522 | 522 |
| 523 #endif // CC_OUTPUT_GL_RENDERER_H_ | 523 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |