| 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 #include "media/capture/content/animated_content_sampler.h" | 5 #include "device/capture/content/animated_content_sampler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 | 11 |
| 12 namespace media { | 12 namespace media { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 } else { | 287 } else { |
| 288 sampling_period = (ratio + 1) * animation_period; | 288 sampling_period = (ratio + 1) * animation_period; |
| 289 } | 289 } |
| 290 } else { | 290 } else { |
| 291 sampling_period = animation_period; | 291 sampling_period = animation_period; |
| 292 } | 292 } |
| 293 return std::max(sampling_period, min_capture_period); | 293 return std::max(sampling_period, min_capture_period); |
| 294 } | 294 } |
| 295 | 295 |
| 296 } // namespace media | 296 } // namespace media |
| OLD | NEW |