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

Side by Side Diff: chromecast/media/service/cast_mojo_media_client.cc

Issue 2836293002: Introduce AudioRendererSink::IsOptimizedForHardwareParameters (Closed)
Patch Set: Revise comment 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
« no previous file with comments | « no previous file | media/audio/audio_output_device.h » ('j') | media/base/audio_renderer_sink.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chromecast/media/service/cast_mojo_media_client.h" 5 #include "chromecast/media/service/cast_mojo_media_client.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "chromecast/media/cma/backend/media_pipeline_backend_factory.h" 8 #include "chromecast/media/cma/backend/media_pipeline_backend_factory.h"
9 #include "chromecast/media/service/cast_renderer.h" 9 #include "chromecast/media/service/cast_renderer.h"
10 #include "chromecast/public/media/media_pipeline_backend.h" 10 #include "chromecast/public/media/media_pipeline_backend.h"
(...skipping 19 matching lines...) Expand all
30 NOTREACHED(); 30 NOTREACHED();
31 } 31 }
32 void Start() final { NOTREACHED(); } 32 void Start() final { NOTREACHED(); }
33 void Stop() final { NOTREACHED(); } 33 void Stop() final { NOTREACHED(); }
34 void Pause() final { NOTREACHED(); } 34 void Pause() final { NOTREACHED(); }
35 void Play() final { NOTREACHED(); } 35 void Play() final { NOTREACHED(); }
36 bool SetVolume(double volume) final { 36 bool SetVolume(double volume) final {
37 NOTREACHED(); 37 NOTREACHED();
38 return false; 38 return false;
39 } 39 }
40 ::media::OutputDeviceInfo GetOutputDeviceInfo() final { 40 ::media::OutputDeviceInfo GetOutputDeviceInfo(
41 const ::media::AudioParameters& preferred_params) final {
41 return ::media::OutputDeviceInfo(device_id_, 42 return ::media::OutputDeviceInfo(device_id_,
42 ::media::OUTPUT_DEVICE_STATUS_OK, 43 ::media::OUTPUT_DEVICE_STATUS_OK,
43 ::media::AudioParameters()); 44 ::media::AudioParameters());
44 } 45 }
45 bool CurrentThreadIsRenderingThread() final { 46 bool CurrentThreadIsRenderingThread() final {
46 NOTREACHED(); 47 NOTREACHED();
47 return false; 48 return false;
48 } 49 }
49 50
50 private: 51 private:
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 media_resource_tracker_); 127 media_resource_tracker_);
127 } 128 }
128 129
129 std::unique_ptr<::media::CdmFactory> CastMojoMediaClient::CreateCdmFactory( 130 std::unique_ptr<::media::CdmFactory> CastMojoMediaClient::CreateCdmFactory(
130 service_manager::mojom::InterfaceProvider* /* host_interfaces */) { 131 service_manager::mojom::InterfaceProvider* /* host_interfaces */) {
131 return create_cdm_factory_cb_.Run(); 132 return create_cdm_factory_cb_.Run();
132 } 133 }
133 134
134 } // namespace media 135 } // namespace media
135 } // namespace chromecast 136 } // namespace chromecast
OLDNEW
« no previous file with comments | « no previous file | media/audio/audio_output_device.h » ('j') | media/base/audio_renderer_sink.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698