OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 MEDIA_CAPTURE_ANIMATED_CONTENT_SAMPLER_H_ | 5 #ifndef MEDIA_CAPTURE_CONTENT_ANIMATED_CONTENT_SAMPLER_H_ |
6 #define MEDIA_CAPTURE_ANIMATED_CONTENT_SAMPLER_H_ | 6 #define MEDIA_CAPTURE_CONTENT_ANIMATED_CONTENT_SAMPLER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
12 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
13 | 13 |
14 namespace media { | 14 namespace media { |
15 | 15 |
16 // Analyzes a sequence of events to detect the presence of constant frame rate | 16 // Analyzes a sequence of events to detect the presence of constant frame rate |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // of time (one microsecond) equals one token; and, tokens are only taken from | 147 // of time (one microsecond) equals one token; and, tokens are only taken from |
148 // the bucket when at least a full sampling period's worth are present. | 148 // the bucket when at least a full sampling period's worth are present. |
149 base::TimeDelta token_bucket_; | 149 base::TimeDelta token_bucket_; |
150 | 150 |
151 // The rewritten frame timestamp for the latest event. | 151 // The rewritten frame timestamp for the latest event. |
152 base::TimeTicks frame_timestamp_; | 152 base::TimeTicks frame_timestamp_; |
153 }; | 153 }; |
154 | 154 |
155 } // namespace media | 155 } // namespace media |
156 | 156 |
157 #endif // MEDIA_CAPTURE_ANIMATED_CONTENT_SAMPLER_H_ | 157 #endif // MEDIA_CAPTURE_CONTENT_ANIMATED_CONTENT_SAMPLER_H_ |
OLD | NEW |