Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: media/base/mock_audio_renderer_sink.cc

Issue 2836293002: Introduce AudioRendererSink::IsOptimizedForHardwareParameters (Closed)
Patch Set: revert preferred_params and add OptimizedForHardwareParameters Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698