From ead39c5d73da35d0e0e4e9c1a02c53ec3727cb53 Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Wed, 9 Jan 2013 07:22:45 +0000 Subject: cc: Make the ScopedPtrVector and ScopedPtrDeque containers act like STL vector and deque. These classes used methods to match the webcore classes and ease migration. Now they are at odds with the STL versions of these containers. Rename the methods, and change arguments from indexes to iterators, to match the STL containers. isEmpty() => empty() last() => back() first() => front() Peek() => at() append() => push_back() insert(index, value) => insert(iterator, value) remove(index) => erase(iterator) and erase(iterator, iterator) take(index) => take(iterator) takeFront() => take_front() takeBack() => take_back() Review URL: https://chromiumcodereview.appspot.com/11418108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175722 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/test/render_pass_test_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cc/test/render_pass_test_common.h') diff --git a/cc/test/render_pass_test_common.h b/cc/test/render_pass_test_common.h index c565df0..199a618 100644 --- a/cc/test/render_pass_test_common.h +++ b/cc/test/render_pass_test_common.h @@ -20,10 +20,10 @@ class TestRenderPass : public cc::RenderPass { } void AppendQuad(scoped_ptr quad) { - quad_list.append(quad.Pass()); + quad_list.push_back(quad.Pass()); } void AppendSharedQuadState(scoped_ptr state) { - shared_quad_state_list.append(state.Pass()); + shared_quad_state_list.push_back(state.Pass()); } void AppendOneOfEveryQuadType(cc::ResourceProvider*); -- cgit v1.1