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

Side by Side Diff: cc/debug/rendering_stats.h

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/rasterize_and_record_benchmark_impl.cc ('k') | cc/debug/rendering_stats.cc » ('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 #ifndef CC_DEBUG_RENDERING_STATS_H_ 5 #ifndef CC_DEBUG_RENDERING_STATS_H_
6 #define CC_DEBUG_RENDERING_STATS_H_ 6 #define CC_DEBUG_RENDERING_STATS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/memory/scoped_ptr.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "base/trace_event/trace_event_argument.h" 14 #include "base/trace_event/trace_event_argument.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "cc/base/cc_export.h" 16 #include "cc/base/cc_export.h"
17 #include "cc/debug/traced_value.h" 17 #include "cc/debug/traced_value.h"
18 18
19 namespace cc { 19 namespace cc {
20 20
21 struct CC_EXPORT RenderingStats { 21 struct CC_EXPORT RenderingStats {
22 // Stores a sequence of TimeDelta objects. 22 // Stores a sequence of TimeDelta objects.
(...skipping 29 matching lines...) Expand all
52 int64_t checkerboarded_no_recording_content_area; 52 int64_t checkerboarded_no_recording_content_area;
53 int64_t checkerboarded_needs_raster_content_area; 53 int64_t checkerboarded_needs_raster_content_area;
54 54
55 TimeDeltaList draw_duration; 55 TimeDeltaList draw_duration;
56 TimeDeltaList draw_duration_estimate; 56 TimeDeltaList draw_duration_estimate;
57 TimeDeltaList begin_main_frame_to_commit_duration; 57 TimeDeltaList begin_main_frame_to_commit_duration;
58 TimeDeltaList begin_main_frame_to_commit_duration_estimate; 58 TimeDeltaList begin_main_frame_to_commit_duration_estimate;
59 TimeDeltaList commit_to_activate_duration; 59 TimeDeltaList commit_to_activate_duration;
60 TimeDeltaList commit_to_activate_duration_estimate; 60 TimeDeltaList commit_to_activate_duration_estimate;
61 61
62 scoped_ptr<base::trace_event::ConvertableToTraceFormat> AsTraceableData() 62 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> AsTraceableData()
63 const; 63 const;
64 void Add(const RenderingStats& other); 64 void Add(const RenderingStats& other);
65 }; 65 };
66 66
67 } // namespace cc 67 } // namespace cc
68 68
69 #endif // CC_DEBUG_RENDERING_STATS_H_ 69 #endif // CC_DEBUG_RENDERING_STATS_H_
OLDNEW
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/debug/rendering_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698