summaryrefslogtreecommitdiffstats
path: root/content/common/cc_messages.cc
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 /content/common/cc_messages.cc
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 'content/common/cc_messages.cc')
-rw-r--r--content/common/cc_messages.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/common/cc_messages.cc b/content/common/cc_messages.cc
index 90ca250..4313e1a 100644
--- a/content/common/cc_messages.cc
+++ b/content/common/cc_messages.cc
@@ -408,7 +408,7 @@ bool ParamTraits<cc::RenderPass>::Read(
scoped_ptr<cc::SharedQuadState> state(cc::SharedQuadState::Create());
if (!ReadParam(m, iter, state.get()))
return false;
- p->shared_quad_state_list.append(state.Pass());
+ p->shared_quad_state_list.push_back(state.Pass());
}
size_t last_shared_quad_state_index = 0;
@@ -465,7 +465,7 @@ bool ParamTraits<cc::RenderPass>::Read(
draw_quad->shared_quad_state =
p->shared_quad_state_list[shared_quad_state_index];
- p->quad_list.append(draw_quad.Pass());
+ p->quad_list.push_back(draw_quad.Pass());
}
return true;
@@ -637,7 +637,7 @@ bool ParamTraits<cc::DelegatedFrameData>::Read(const Message* m,
scoped_ptr<cc::RenderPass> render_pass = cc::RenderPass::Create();
if (!ReadParam(m, iter, render_pass.get()))
return false;
- p->render_pass_list.append(render_pass.Pass());
+ p->render_pass_list.push_back(render_pass.Pass());
}
return true;
}