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

Side by Side Diff: cc/trees/layer_tree_impl.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/trees/layer_tree_host_unittest_video.cc ('k') | cc/trees/layer_tree_impl.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/containers/hash_tables.h" 13 #include "base/containers/hash_tables.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "cc/base/scoped_ptr_vector.h"
16 #include "cc/base/synced_property.h" 15 #include "cc/base/synced_property.h"
17 #include "cc/input/layer_selection_bound.h" 16 #include "cc/input/layer_selection_bound.h"
18 #include "cc/layers/layer_impl.h" 17 #include "cc/layers/layer_impl.h"
19 #include "cc/output/begin_frame_args.h" 18 #include "cc/output/begin_frame_args.h"
20 #include "cc/output/renderer.h" 19 #include "cc/output/renderer.h"
21 #include "cc/output/swap_promise.h" 20 #include "cc/output/swap_promise.h"
22 #include "cc/resources/ui_resource_client.h" 21 #include "cc/resources/ui_resource_client.h"
23 #include "cc/trees/layer_tree_host_impl.h" 22 #include "cc/trees/layer_tree_host_impl.h"
24 #include "cc/trees/property_tree.h" 23 #include "cc/trees/property_tree.h"
25 24
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // 298 //
300 // An active tree pinned swap promise will see only DidSwap() or 299 // An active tree pinned swap promise will see only DidSwap() or
301 // DidNotSwap(SWAP_FAILS). No DidActivate() will be seen because 300 // DidNotSwap(SWAP_FAILS). No DidActivate() will be seen because
302 // that has already happened prior to queueing of the swap promise. 301 // that has already happened prior to queueing of the swap promise.
303 // 302 //
304 // Pinned active tree swap promises will not be broken prematurely 303 // Pinned active tree swap promises will not be broken prematurely
305 // on the active tree if a new tree is activated. 304 // on the active tree if a new tree is activated.
306 void QueuePinnedSwapPromise(scoped_ptr<SwapPromise> swap_promise); 305 void QueuePinnedSwapPromise(scoped_ptr<SwapPromise> swap_promise);
307 306
308 // Take the |new_swap_promise| and append it to |swap_promise_list_|. 307 // Take the |new_swap_promise| and append it to |swap_promise_list_|.
309 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise); 308 void PassSwapPromises(std::vector<scoped_ptr<SwapPromise>>* new_swap_promise);
310 void FinishSwapPromises(CompositorFrameMetadata* metadata); 309 void FinishSwapPromises(CompositorFrameMetadata* metadata);
311 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); 310 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason);
312 311
313 void DidModifyTilePriorities(); 312 void DidModifyTilePriorities();
314 313
315 ResourceId ResourceIdForUIResource(UIResourceId uid) const; 314 ResourceId ResourceIdForUIResource(UIResourceId uid) const;
316 void ProcessUIResourceRequestQueue(); 315 void ProcessUIResourceRequestQueue();
317 316
318 bool IsUIResourceOpaque(UIResourceId uid) const; 317 bool IsUIResourceOpaque(UIResourceId uid) const;
319 318
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 bool needs_update_draw_properties_; 474 bool needs_update_draw_properties_;
476 475
477 // In impl-side painting mode, this is true when the tree may contain 476 // In impl-side painting mode, this is true when the tree may contain
478 // structural differences relative to the active tree. 477 // structural differences relative to the active tree.
479 bool needs_full_tree_sync_; 478 bool needs_full_tree_sync_;
480 479
481 bool next_activation_forces_redraw_; 480 bool next_activation_forces_redraw_;
482 481
483 bool has_ever_been_drawn_; 482 bool has_ever_been_drawn_;
484 483
485 ScopedPtrVector<SwapPromise> swap_promise_list_; 484 std::vector<scoped_ptr<SwapPromise>> swap_promise_list_;
486 ScopedPtrVector<SwapPromise> pinned_swap_promise_list_; 485 std::vector<scoped_ptr<SwapPromise>> pinned_swap_promise_list_;
487 486
488 UIResourceRequestQueue ui_resource_request_queue_; 487 UIResourceRequestQueue ui_resource_request_queue_;
489 488
490 int render_surface_layer_list_id_; 489 int render_surface_layer_list_id_;
491 490
492 // Whether or not Blink's viewport size was shrunk by the height of the top 491 // Whether or not Blink's viewport size was shrunk by the height of the top
493 // controls at the time of the last layout. 492 // controls at the time of the last layout.
494 bool top_controls_shrink_blink_size_; 493 bool top_controls_shrink_blink_size_;
495 494
496 float top_controls_height_; 495 float top_controls_height_;
497 496
498 // The amount that the top controls are shown from 0 (hidden) to 1 (fully 497 // The amount that the top controls are shown from 0 (hidden) to 1 (fully
499 // shown). 498 // shown).
500 scoped_refptr<SyncedTopControls> top_controls_shown_ratio_; 499 scoped_refptr<SyncedTopControls> top_controls_shown_ratio_;
501 500
502 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 501 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
503 502
504 private: 503 private:
505 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 504 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
506 }; 505 };
507 506
508 } // namespace cc 507 } // namespace cc
509 508
510 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 509 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_video.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698