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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 60ef91e2302df204c9b463faa7e36d1f10db0f52..2f8fbfc7e408f57af9abb77ad048bb389b7b8243 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -12,7 +12,6 @@
#include "base/containers/hash_tables.h"
#include "base/values.h"
-#include "cc/base/scoped_ptr_vector.h"
#include "cc/base/synced_property.h"
#include "cc/input/layer_selection_bound.h"
#include "cc/layers/layer_impl.h"
@@ -306,7 +305,7 @@ class CC_EXPORT LayerTreeImpl {
void QueuePinnedSwapPromise(scoped_ptr<SwapPromise> swap_promise);
// Take the |new_swap_promise| and append it to |swap_promise_list_|.
- void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise);
+ void PassSwapPromises(std::vector<scoped_ptr<SwapPromise>>* new_swap_promise);
void FinishSwapPromises(CompositorFrameMetadata* metadata);
void BreakSwapPromises(SwapPromise::DidNotSwapReason reason);
@@ -482,8 +481,8 @@ class CC_EXPORT LayerTreeImpl {
bool has_ever_been_drawn_;
- ScopedPtrVector<SwapPromise> swap_promise_list_;
- ScopedPtrVector<SwapPromise> pinned_swap_promise_list_;
+ std::vector<scoped_ptr<SwapPromise>> swap_promise_list_;
+ std::vector<scoped_ptr<SwapPromise>> pinned_swap_promise_list_;
UIResourceRequestQueue ui_resource_request_queue_;
« 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