| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/base/android/media_codec_loop.h" | 5 #include "media/base/android/media_codec_loop.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/single_thread_task_runner.h" |
| 10 #include "media/base/bind_to_current_loop.h" | 11 #include "media/base/bind_to_current_loop.h" |
| 11 #include "media/base/timestamp_constants.h" | 12 #include "media/base/timestamp_constants.h" |
| 12 | 13 |
| 13 namespace media { | 14 namespace media { |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 constexpr base::TimeDelta kDecodePollDelay = | 17 constexpr base::TimeDelta kDecodePollDelay = |
| 17 base::TimeDelta::FromMilliseconds(10); | 18 base::TimeDelta::FromMilliseconds(10); |
| 18 constexpr base::TimeDelta kNoWaitTimeout = base::TimeDelta::FromMicroseconds(0); | 19 constexpr base::TimeDelta kNoWaitTimeout = base::TimeDelta::FromMicroseconds(0); |
| 19 constexpr base::TimeDelta kIdleTimerTimeout = base::TimeDelta::FromSeconds(1); | 20 constexpr base::TimeDelta kIdleTimerTimeout = base::TimeDelta::FromSeconds(1); |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 RETURN_STRING(STATE_DRAINED); | 361 RETURN_STRING(STATE_DRAINED); |
| 361 RETURN_STRING(STATE_ERROR); | 362 RETURN_STRING(STATE_ERROR); |
| 362 } | 363 } |
| 363 #undef RETURN_STRING | 364 #undef RETURN_STRING |
| 364 | 365 |
| 365 NOTREACHED() << "Unknown state " << state; | 366 NOTREACHED() << "Unknown state " << state; |
| 366 return nullptr; | 367 return nullptr; |
| 367 } | 368 } |
| 368 | 369 |
| 369 } // namespace media | 370 } // namespace media |
| OLD | NEW |