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

Unified Diff: cc/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: android!! Created 7 years, 11 months 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
« no previous file with comments | « cc/picture_layer_tiling_set.cc ('k') | cc/render_pass.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quad_culler.cc
diff --git a/cc/quad_culler.cc b/cc/quad_culler.cc
index a0358b7a77e976b7a21dd384b8a3bdc70c68dd3e..416d4814ea5b0de5594700150aa40e23286552eb 100644
--- a/cc/quad_culler.cc
+++ b/cc/quad_culler.cc
@@ -31,7 +31,7 @@ SharedQuadState* QuadCuller::useSharedQuadState(scoped_ptr<SharedQuadState> shar
{
// FIXME: If all quads are culled for the sharedQuadState, we can drop it from the list.
m_currentSharedQuadState = sharedQuadState.get();
- m_sharedQuadStateList.append(sharedQuadState.Pass());
+ m_sharedQuadStateList.push_back(sharedQuadState.Pass());
return m_currentSharedQuadState;
}
@@ -51,11 +51,11 @@ static inline bool appendQuadInternal(scoped_ptr<DrawQuad> drawQuad, const gfx::
float width = DebugColors::CulledTileBorderWidth(layer ? layer->layerTreeImpl() : NULL);
scoped_ptr<DebugBorderDrawQuad> debugBorderQuad = DebugBorderDrawQuad::Create();
debugBorderQuad->SetNew(drawQuad->shared_quad_state, drawQuad->visible_rect, color, width);
- quadList.append(debugBorderQuad.PassAs<DrawQuad>());
+ quadList.push_back(debugBorderQuad.PassAs<DrawQuad>());
}
// Pass the quad after we're done using it.
- quadList.append(drawQuad.Pass());
+ quadList.push_back(drawQuad.Pass());
}
return keepQuad;
}
@@ -63,8 +63,8 @@ static inline bool appendQuadInternal(scoped_ptr<DrawQuad> drawQuad, const gfx::
bool QuadCuller::append(scoped_ptr<DrawQuad> drawQuad, AppendQuadsData& appendQuadsData)
{
DCHECK(drawQuad->shared_quad_state == m_currentSharedQuadState);
- DCHECK(!m_sharedQuadStateList.isEmpty());
- DCHECK(m_sharedQuadStateList.last() == m_currentSharedQuadState);
+ DCHECK(!m_sharedQuadStateList.empty());
+ DCHECK(m_sharedQuadStateList.back() == m_currentSharedQuadState);
gfx::Rect culledRect;
bool hasOcclusionFromOutsideTargetSurface;
« no previous file with comments | « cc/picture_layer_tiling_set.cc ('k') | cc/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698