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

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

Issue 2836293002: Introduce AudioRendererSink::IsOptimizedForHardwareParameters (Closed)
Patch Set: rebase 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') | no next file with comments »
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 25 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « no previous file | media/audio/audio_output_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698