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

Side by Side Diff: cc/base/rolling_time_delta_history.h

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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/base/region.cc ('k') | cc/base/rolling_time_delta_history.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BASE_ROLLING_TIME_DELTA_HISTORY_H_ 5 #ifndef CC_BASE_ROLLING_TIME_DELTA_HISTORY_H_
6 #define CC_BASE_ROLLING_TIME_DELTA_HISTORY_H_ 6 #define CC_BASE_ROLLING_TIME_DELTA_HISTORY_H_
7 7
8 #include <stddef.h>
9
8 #include <deque> 10 #include <deque>
9 #include <set> 11 #include <set>
10 12
13 #include "base/macros.h"
11 #include "base/time/time.h" 14 #include "base/time/time.h"
12 #include "cc/base/cc_export.h" 15 #include "cc/base/cc_export.h"
13 16
14 namespace cc { 17 namespace cc {
15 18
16 // Stores a limited number of samples. When the maximum size is reached, each 19 // Stores a limited number of samples. When the maximum size is reached, each
17 // insertion results in the deletion of the oldest remaining sample. 20 // insertion results in the deletion of the oldest remaining sample.
18 class CC_EXPORT RollingTimeDeltaHistory { 21 class CC_EXPORT RollingTimeDeltaHistory {
19 public: 22 public:
20 explicit RollingTimeDeltaHistory(size_t max_size); 23 explicit RollingTimeDeltaHistory(size_t max_size);
(...skipping 14 matching lines...) Expand all
35 TimeDeltaMultiset sample_set_; 38 TimeDeltaMultiset sample_set_;
36 std::deque<TimeDeltaMultiset::iterator> chronological_sample_deque_; 39 std::deque<TimeDeltaMultiset::iterator> chronological_sample_deque_;
37 size_t max_size_; 40 size_t max_size_;
38 41
39 DISALLOW_COPY_AND_ASSIGN(RollingTimeDeltaHistory); 42 DISALLOW_COPY_AND_ASSIGN(RollingTimeDeltaHistory);
40 }; 43 };
41 44
42 } // namespace cc 45 } // namespace cc
43 46
44 #endif // CC_BASE_ROLLING_TIME_DELTA_HISTORY_H_ 47 #endif // CC_BASE_ROLLING_TIME_DELTA_HISTORY_H_
OLDNEW
« no previous file with comments | « cc/base/region.cc ('k') | cc/base/rolling_time_delta_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698