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

Unified Diff: cc/layer_tree_host_impl_unittest.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/layer_tree_host_impl.cc ('k') | cc/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_impl_unittest.cc
diff --git a/cc/layer_tree_host_impl_unittest.cc b/cc/layer_tree_host_impl_unittest.cc
index 6ceeb230e3cd1c3c4ae1e61f689e65f9e05b2f65..41376b3d8a784db924d6acebdd7c46a200453410 100644
--- a/cc/layer_tree_host_impl_unittest.cc
+++ b/cc/layer_tree_host_impl_unittest.cc
@@ -3783,7 +3783,7 @@ static void configureRenderPassTestData(const char* testScript, RenderPassRemova
}
}
testData.renderPassesById[renderPassId] = renderPass.get();
- testData.renderPasses.insert(0, renderPass.PassAs<RenderPass>());
+ testData.renderPasses.insert(testData.renderPasses.begin(), renderPass.PassAs<RenderPass>());
if (*currentChar)
currentChar++;
}
@@ -4375,7 +4375,7 @@ protected:
ASSERT_EQ(1u, frame.renderPasses.size());
// Verify the damage rect for the root render pass.
- const RenderPass* rootRenderPass = frame.renderPasses.last();
+ const RenderPass* rootRenderPass = frame.renderPasses.back();
EXPECT_RECT_EQ(expectedDamage, rootRenderPass->damage_rect);
// Verify the root layer's quad is generated and not being culled.
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698