summaryrefslogtreecommitdiffstats
path: root/cc/test/render_pass_test_common.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-09 07:22:45 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-09 07:22:45 +0000
commitead39c5d73da35d0e0e4e9c1a02c53ec3727cb53 (patch)
treeb42ce1909161c94b5e72eae7bd4a6ec878d5c6b7 /cc/test/render_pass_test_common.h
parent46ad823d93a1223e34ea3160284d45163ab7a2d0 (diff)
downloadchromium_src-ead39c5d73da35d0e0e4e9c1a02c53ec3727cb53.zip
chromium_src-ead39c5d73da35d0e0e4e9c1a02c53ec3727cb53.tar.gz
chromium_src-ead39c5d73da35d0e0e4e9c1a02c53ec3727cb53.tar.bz2
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
Diffstat (limited to 'cc/test/render_pass_test_common.h')
-rw-r--r--cc/test/render_pass_test_common.h4
1 files changed, 2 insertions, 2 deletions
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<cc::DrawQuad> quad) {
- quad_list.append(quad.Pass());
+ quad_list.push_back(quad.Pass());
}
void AppendSharedQuadState(scoped_ptr<cc::SharedQuadState> state) {
- shared_quad_state_list.append(state.Pass());
+ shared_quad_state_list.push_back(state.Pass());
}
void AppendOneOfEveryQuadType(cc::ResourceProvider*);