Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/mock_audio_renderer_sink.h" | 5 #include "media/base/mock_audio_renderer_sink.h" |
| 6 | 6 |
| 7 namespace media { | 7 namespace media { |
| 8 MockAudioRendererSink::MockAudioRendererSink() | 8 MockAudioRendererSink::MockAudioRendererSink() |
| 9 : MockAudioRendererSink(OUTPUT_DEVICE_STATUS_OK) {} | 9 : MockAudioRendererSink(OUTPUT_DEVICE_STATUS_OK) {} |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 | 41 |
| 42 void MockAudioRendererSink::Initialize(const AudioParameters& params, | 42 void MockAudioRendererSink::Initialize(const AudioParameters& params, |
| 43 RenderCallback* renderer) { | 43 RenderCallback* renderer) { |
| 44 callback_ = renderer; | 44 callback_ = renderer; |
| 45 } | 45 } |
| 46 | 46 |
| 47 OutputDeviceInfo MockAudioRendererSink::GetOutputDeviceInfo() { | 47 OutputDeviceInfo MockAudioRendererSink::GetOutputDeviceInfo() { |
| 48 return output_device_info_; | 48 return output_device_info_; |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool MockAudioRendererSink::OptimizedForHardwareParameters() { | |
| 52 return true; | |
|
DaleCurtis
2017/05/01 22:55:08
false?
flim-chromium
2017/05/15 15:15:57
Done.
| |
| 53 } | |
| 54 | |
| 51 } // namespace media | 55 } // namespace media |
| OLD | NEW |