| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/logging.h" | |
| 6 #include "media/base/synchronizer.h" | 5 #include "media/base/synchronizer.h" |
| 7 | 6 |
| 8 namespace media { | 7 namespace media { |
| 9 | 8 |
| 10 const int64 Synchronizer::kMinFrameDelayUs = 0; | 9 const int64 Synchronizer::kMinFrameDelayUs = 0; |
| 11 const int64 Synchronizer::kMaxFrameDelayUs = 250000; | 10 const int64 Synchronizer::kMaxFrameDelayUs = 250000; |
| 12 | 11 |
| 13 Synchronizer::Synchronizer() { | 12 Synchronizer::Synchronizer() { |
| 14 } | 13 } |
| 15 | 14 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 sleep = base::TimeDelta::FromMicroseconds(kMaxFrameDelayUs); | 81 sleep = base::TimeDelta::FromMicroseconds(kMaxFrameDelayUs); |
| 83 } | 82 } |
| 84 } | 83 } |
| 85 last_time_ = time; | 84 last_time_ = time; |
| 86 | 85 |
| 87 *delay_out = sleep; | 86 *delay_out = sleep; |
| 88 *should_skip_out = false; | 87 *should_skip_out = false; |
| 89 } | 88 } |
| 90 | 89 |
| 91 } // namespace media | 90 } // namespace media |
| OLD | NEW |