| 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 "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 25 matching lines...) Expand all Loading... |
| 36 void Play() final { NOTREACHED(); } | 36 void Play() final { NOTREACHED(); } |
| 37 bool SetVolume(double volume) final { | 37 bool SetVolume(double volume) final { |
| 38 NOTREACHED(); | 38 NOTREACHED(); |
| 39 return false; | 39 return false; |
| 40 } | 40 } |
| 41 ::media::OutputDeviceInfo GetOutputDeviceInfo() final { | 41 ::media::OutputDeviceInfo GetOutputDeviceInfo() final { |
| 42 return ::media::OutputDeviceInfo(device_id_, | 42 return ::media::OutputDeviceInfo(device_id_, |
| 43 ::media::OUTPUT_DEVICE_STATUS_OK, | 43 ::media::OUTPUT_DEVICE_STATUS_OK, |
| 44 ::media::AudioParameters()); | 44 ::media::AudioParameters()); |
| 45 } | 45 } |
| 46 |
| 47 bool IsOptimizedForHardwareParameters() final { |
| 48 NOTREACHED(); |
| 49 return true; |
| 50 } |
| 51 |
| 46 bool CurrentThreadIsRenderingThread() final { | 52 bool CurrentThreadIsRenderingThread() final { |
| 47 NOTREACHED(); | 53 NOTREACHED(); |
| 48 return false; | 54 return false; |
| 49 } | 55 } |
| 50 | 56 |
| 51 private: | 57 private: |
| 52 ~CastAudioRendererSink() final {} | 58 ~CastAudioRendererSink() final {} |
| 53 | 59 |
| 54 std::string device_id_; | 60 std::string device_id_; |
| 55 DISALLOW_COPY_AND_ASSIGN(CastAudioRendererSink); | 61 DISALLOW_COPY_AND_ASSIGN(CastAudioRendererSink); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 media_resource_tracker_); | 133 media_resource_tracker_); |
| 128 } | 134 } |
| 129 | 135 |
| 130 std::unique_ptr<::media::CdmFactory> CastMojoMediaClient::CreateCdmFactory( | 136 std::unique_ptr<::media::CdmFactory> CastMojoMediaClient::CreateCdmFactory( |
| 131 service_manager::mojom::InterfaceProvider* /* host_interfaces */) { | 137 service_manager::mojom::InterfaceProvider* /* host_interfaces */) { |
| 132 return create_cdm_factory_cb_.Run(); | 138 return create_cdm_factory_cb_.Run(); |
| 133 } | 139 } |
| 134 | 140 |
| 135 } // namespace media | 141 } // namespace media |
| 136 } // namespace chromecast | 142 } // namespace chromecast |
| OLD | NEW |