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

Side by Side Diff: cc/debug/debug_rect_history.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « cc/debug/debug_rect_history.h ('k') | cc/debug/devtools_instrumentation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/debug/debug_rect_history.h" 5 #include "cc/debug/debug_rect_history.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/ptr_util.h"
9 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
10 #include "cc/layers/layer_impl.h" 11 #include "cc/layers/layer_impl.h"
11 #include "cc/layers/layer_iterator.h" 12 #include "cc/layers/layer_iterator.h"
12 #include "cc/layers/layer_list_iterator.h" 13 #include "cc/layers/layer_list_iterator.h"
13 #include "cc/layers/layer_utils.h" 14 #include "cc/layers/layer_utils.h"
14 #include "cc/layers/render_surface_impl.h" 15 #include "cc/layers/render_surface_impl.h"
15 #include "cc/trees/damage_tracker.h" 16 #include "cc/trees/damage_tracker.h"
16 #include "cc/trees/layer_tree_host.h" 17 #include "cc/trees/layer_tree_host.h"
17 #include "cc/trees/layer_tree_host_common.h" 18 #include "cc/trees/layer_tree_host_common.h"
18 #include "cc/trees/layer_tree_impl.h" 19 #include "cc/trees/layer_tree_impl.h"
19 #include "ui/gfx/geometry/rect_conversions.h" 20 #include "ui/gfx/geometry/rect_conversions.h"
20 21
21 namespace cc { 22 namespace cc {
22 23
23 // static 24 // static
24 scoped_ptr<DebugRectHistory> DebugRectHistory::Create() { 25 std::unique_ptr<DebugRectHistory> DebugRectHistory::Create() {
25 return make_scoped_ptr(new DebugRectHistory()); 26 return base::WrapUnique(new DebugRectHistory());
26 } 27 }
27 28
28 DebugRectHistory::DebugRectHistory() {} 29 DebugRectHistory::DebugRectHistory() {}
29 30
30 DebugRectHistory::~DebugRectHistory() {} 31 DebugRectHistory::~DebugRectHistory() {}
31 32
32 void DebugRectHistory::SaveDebugRectsForCurrentFrame( 33 void DebugRectHistory::SaveDebugRectsForCurrentFrame(
33 LayerImpl* root_layer, 34 LayerImpl* root_layer,
34 LayerImpl* hud_layer, 35 LayerImpl* hud_layer,
35 const LayerImplList& render_surface_layer_list, 36 const LayerImplList& render_surface_layer_list,
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 debug_rects_.push_back( 250 debug_rects_.push_back(
250 DebugRect(ANIMATION_BOUNDS_RECT_TYPE, 251 DebugRect(ANIMATION_BOUNDS_RECT_TYPE,
251 gfx::ToEnclosingRect(gfx::RectF(inflated_bounds.x(), 252 gfx::ToEnclosingRect(gfx::RectF(inflated_bounds.x(),
252 inflated_bounds.y(), 253 inflated_bounds.y(),
253 inflated_bounds.width(), 254 inflated_bounds.width(),
254 inflated_bounds.height())))); 255 inflated_bounds.height()))));
255 } 256 }
256 } 257 }
257 258
258 } // namespace cc 259 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/debug_rect_history.h ('k') | cc/debug/devtools_instrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698