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

Unified Diff: cc/trees/layer_tree_host_common.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.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.h
diff --git a/cc/trees/layer_tree_host_common.h b/cc/trees/layer_tree_host_common.h
index 7593314c4bda0061a03e2b474e576b9ba4e584fc..f17bc7fb95ae811c6aa518552882c9e939e8cf6b 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -9,9 +9,9 @@
#include <vector>
#include "base/bind.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "cc/base/cc_export.h"
-#include "cc/base/scoped_ptr_vector.h"
#include "cc/layers/layer_lists.h"
#include "cc/trees/property_tree.h"
#include "ui/gfx/geometry/rect.h"
@@ -149,7 +149,7 @@ class CC_EXPORT LayerTreeHostCommon {
static LayerImpl* get_layer_as_raw_ptr(const OwnedLayerImplList& layers,
size_t index) {
- return layers[index];
+ return layers[index].get();
}
static LayerImpl* get_layer_as_raw_ptr(const LayerImplList& layers,
@@ -173,7 +173,10 @@ struct CC_EXPORT ScrollAndScaleSet {
float page_scale_delta;
gfx::Vector2dF elastic_overscroll_delta;
float top_controls_delta;
- ScopedPtrVector<SwapPromise> swap_promises;
+ std::vector<scoped_ptr<SwapPromise>> swap_promises;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ScrollAndScaleSet);
};
template <typename LayerType>
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698