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

Unified Diff: cc/picture_layer_impl.cc

Issue 11418108: cc: Make the ScopedPtrVector and ScopedPtrDeque containers act like STL vector and deque. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add DCHECK Created 8 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
Index: cc/picture_layer_impl.cc
diff --git a/cc/picture_layer_impl.cc b/cc/picture_layer_impl.cc
index 5c1d8e82dc8a5027556570f3072ec8bad7cd958d..5fdd0ad7ad3f4d23ce31eabfe817194f37f567e5 100644
--- a/cc/picture_layer_impl.cc
+++ b/cc/picture_layer_impl.cc
@@ -99,7 +99,7 @@ void PictureLayerImpl::SyncFromActiveLayer(const PictureLayerImpl* other) {
for (size_t i = 0; i < other->tilings_.size(); ++i) {
scoped_ptr<PictureLayerTiling> clone = other->tilings_[i]->Clone();
clone->set_client(this);
- tilings_.append(clone.Pass());
+ tilings_.push_back(clone.Pass());
}
}
@@ -113,7 +113,7 @@ void PictureLayerImpl::Update() {
tiling->set_client(this);
tiling->SetBounds(contentBounds());
tiling->create_tiles(gfx::Rect(gfx::Point(), contentBounds()));
- tilings_.append(tiling.Pass());
+ tilings_.push_back(tiling.Pass());
// TODO(enne): handle invalidations, create new tiles
}
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/quad_culler.cc » ('j') | cc/scoped_ptr_deque.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698