Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(922)

Side by Side Diff: cc/output/gl_renderer.h

Issue 1437413002: cc: Remove ScopedPtrVector and cc::remove_if. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ScheduleCALayers(DrawingFrame* frame); 260 void ScheduleCALayers(DrawingFrame* frame);
261 void ScheduleOverlays(DrawingFrame* frame); 261 void ScheduleOverlays(DrawingFrame* frame);
262 262
263 typedef ScopedPtrVector<ResourceProvider::ScopedReadLockGL> 263 using OverlayResourceLockList =
264 OverlayResourceLockList; 264 std::vector<scoped_ptr<ResourceProvider::ScopedReadLockGL>>;
265 OverlayResourceLockList pending_overlay_resources_; 265 OverlayResourceLockList pending_overlay_resources_;
266 OverlayResourceLockList in_use_overlay_resources_; 266 OverlayResourceLockList in_use_overlay_resources_;
267 OverlayResourceLockList previous_swap_overlay_resources_; 267 OverlayResourceLockList previous_swap_overlay_resources_;
268 268
269 RendererCapabilitiesImpl capabilities_; 269 RendererCapabilitiesImpl capabilities_;
270 270
271 unsigned offscreen_framebuffer_id_; 271 unsigned offscreen_framebuffer_id_;
272 272
273 scoped_ptr<StaticGeometryBinding> shared_geometry_; 273 scoped_ptr<StaticGeometryBinding> shared_geometry_;
274 scoped_ptr<DynamicGeometryBinding> clipped_geometry_; 274 scoped_ptr<DynamicGeometryBinding> clipped_geometry_;
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 bool is_scissor_enabled_; 494 bool is_scissor_enabled_;
495 bool scissor_rect_needs_reset_; 495 bool scissor_rect_needs_reset_;
496 bool stencil_shadow_; 496 bool stencil_shadow_;
497 bool blend_shadow_; 497 bool blend_shadow_;
498 unsigned program_shadow_; 498 unsigned program_shadow_;
499 TexturedQuadDrawCache draw_cache_; 499 TexturedQuadDrawCache draw_cache_;
500 int highp_threshold_min_; 500 int highp_threshold_min_;
501 int highp_threshold_cache_; 501 int highp_threshold_cache_;
502 502
503 struct PendingAsyncReadPixels; 503 struct PendingAsyncReadPixels;
504 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_; 504 std::vector<scoped_ptr<PendingAsyncReadPixels>> pending_async_read_pixels_;
505 505
506 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; 506 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_;
507 507
508 class SyncQuery; 508 class SyncQuery;
509 std::deque<scoped_ptr<SyncQuery>> pending_sync_queries_; 509 std::deque<scoped_ptr<SyncQuery>> pending_sync_queries_;
510 std::deque<scoped_ptr<SyncQuery>> available_sync_queries_; 510 std::deque<scoped_ptr<SyncQuery>> available_sync_queries_;
511 scoped_ptr<SyncQuery> current_sync_query_; 511 scoped_ptr<SyncQuery> current_sync_query_;
512 bool use_sync_query_; 512 bool use_sync_query_;
513 bool use_blend_equation_advanced_; 513 bool use_blend_equation_advanced_;
514 bool use_blend_equation_advanced_coherent_; 514 bool use_blend_equation_advanced_coherent_;
515 515
516 SkBitmap on_demand_tile_raster_bitmap_; 516 SkBitmap on_demand_tile_raster_bitmap_;
517 ResourceId on_demand_tile_raster_resource_id_; 517 ResourceId on_demand_tile_raster_resource_id_;
518 BoundGeometry bound_geometry_; 518 BoundGeometry bound_geometry_;
519 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 519 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
520 }; 520 };
521 521
522 } // namespace cc 522 } // namespace cc
523 523
524 #endif // CC_OUTPUT_GL_RENDERER_H_ 524 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698