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

Unified Diff: cc/test/mock_quad_culler.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/test/mock_quad_culler.cc
diff --git a/cc/test/mock_quad_culler.cc b/cc/test/mock_quad_culler.cc
index 9afb7bc582fe4e03fde171e7825d8df9e6a454c3..5fe6c1720a8c57617ec6b271c35274e80134280f 100644
--- a/cc/test/mock_quad_culler.cc
+++ b/cc/test/mock_quad_culler.cc
@@ -25,7 +25,7 @@ MockQuadCuller::~MockQuadCuller()
bool MockQuadCuller::append(scoped_ptr<DrawQuad> drawQuad, AppendQuadsData&)
{
if (!drawQuad->rect.IsEmpty()) {
- m_activeQuadList.append(drawQuad.Pass());
+ m_activeQuadList.push_back(drawQuad.Pass());
return true;
}
return false;
@@ -36,7 +36,7 @@ SharedQuadState* MockQuadCuller::useSharedQuadState(scoped_ptr<SharedQuadState>
sharedQuadState->id = m_activeSharedQuadStateList.size();
SharedQuadState* rawPtr = sharedQuadState.get();
- m_activeSharedQuadStateList.append(sharedQuadState.Pass());
+ m_activeSharedQuadStateList.push_back(sharedQuadState.Pass());
return rawPtr;
}

Powered by Google App Engine
This is Rietveld 408576698