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