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

Side by Side Diff: chromecast/media/service/cast_renderer.h

Issue 2541803003: media: remove unused functions: Renderer::HasAudio()/HasVideo() (Closed)
Patch Set: cast Created 4 years 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 | chromecast/media/service/cast_renderer.cc » ('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 #ifndef CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_ 5 #ifndef CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_
6 #define CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_ 6 #define CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chromecast/media/base/media_resource_tracker.h" 9 #include "chromecast/media/base/media_resource_tracker.h"
10 #include "chromecast/media/base/video_resolution_policy.h" 10 #include "chromecast/media/base/video_resolution_policy.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void Initialize(::media::DemuxerStreamProvider* demuxer_stream_provider, 42 void Initialize(::media::DemuxerStreamProvider* demuxer_stream_provider,
43 ::media::RendererClient* client, 43 ::media::RendererClient* client,
44 const ::media::PipelineStatusCB& init_cb) final; 44 const ::media::PipelineStatusCB& init_cb) final;
45 void SetCdm(::media::CdmContext* cdm_context, 45 void SetCdm(::media::CdmContext* cdm_context,
46 const ::media::CdmAttachedCB& cdm_attached_cb) final; 46 const ::media::CdmAttachedCB& cdm_attached_cb) final;
47 void Flush(const base::Closure& flush_cb) final; 47 void Flush(const base::Closure& flush_cb) final;
48 void StartPlayingFrom(base::TimeDelta time) final; 48 void StartPlayingFrom(base::TimeDelta time) final;
49 void SetPlaybackRate(double playback_rate) final; 49 void SetPlaybackRate(double playback_rate) final;
50 void SetVolume(float volume) final; 50 void SetVolume(float volume) final;
51 base::TimeDelta GetMediaTime() final; 51 base::TimeDelta GetMediaTime() final;
52 bool HasAudio() final;
53 bool HasVideo() final;
54 52
55 // VideoResolutionPolicy::Observer implementation. 53 // VideoResolutionPolicy::Observer implementation.
56 void OnVideoResolutionPolicyChanged() override; 54 void OnVideoResolutionPolicyChanged() override;
57 55
58 private: 56 private:
59 enum Stream { STREAM_AUDIO, STREAM_VIDEO }; 57 enum Stream { STREAM_AUDIO, STREAM_VIDEO };
60 void OnError(::media::PipelineStatus status); 58 void OnError(::media::PipelineStatus status);
61 void OnEnded(Stream stream); 59 void OnEnded(Stream stream);
62 void OnStatisticsUpdate(const ::media::PipelineStatistics& stats); 60 void OnStatisticsUpdate(const ::media::PipelineStatistics& stats);
63 void OnBufferingStateChange(::media::BufferingState state); 61 void OnBufferingStateChange(::media::BufferingState state);
(...skipping 19 matching lines...) Expand all
83 gfx::Size video_res_; 81 gfx::Size video_res_;
84 82
85 base::WeakPtrFactory<CastRenderer> weak_factory_; 83 base::WeakPtrFactory<CastRenderer> weak_factory_;
86 DISALLOW_COPY_AND_ASSIGN(CastRenderer); 84 DISALLOW_COPY_AND_ASSIGN(CastRenderer);
87 }; 85 };
88 86
89 } // namespace media 87 } // namespace media
90 } // namespace chromecast 88 } // namespace chromecast
91 89
92 #endif // CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_ 90 #endif // CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/media/service/cast_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698