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

Unified Diff: cc/surfaces/surface_aggregator.cc

Issue 1437413002: cc: Remove ScopedPtrVector and cc::remove_if. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « cc/surfaces/surface.cc ('k') | cc/surfaces/surface_aggregator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_aggregator.cc
diff --git a/cc/surfaces/surface_aggregator.cc b/cc/surfaces/surface_aggregator.cc
index a0108b7d09c99a6e135a0049d80ef881f8fedb21..43c57bcf670bfc6557df1612821e8da9df454e69 100644
--- a/cc/surfaces/surface_aggregator.cc
+++ b/cc/surfaces/surface_aggregator.cc
@@ -29,7 +29,7 @@ namespace {
void MoveMatchingRequests(
RenderPassId id,
std::multimap<RenderPassId, CopyOutputRequest*>* copy_requests,
- ScopedPtrVector<CopyOutputRequest>* output_requests) {
+ std::vector<scoped_ptr<CopyOutputRequest>>* output_requests) {
auto request_range = copy_requests->equal_range(id);
for (auto it = request_range.first; it != request_range.second; ++it) {
DCHECK(it->second);
@@ -576,7 +576,7 @@ gfx::Rect SurfaceAggregator::PrewalkTree(SurfaceId surface_id) {
gfx::Rect damage_rect;
if (!frame_data->render_pass_list.empty()) {
- RenderPass* last_pass = frame_data->render_pass_list.back();
+ RenderPass* last_pass = frame_data->render_pass_list.back().get();
damage_rect =
DamageRectForSurface(surface, *last_pass, last_pass->output_rect);
}
« no previous file with comments | « cc/surfaces/surface.cc ('k') | cc/surfaces/surface_aggregator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698