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

Side by Side Diff: media/mojo/services/mojo_renderer_service.h

Issue 2383663002: Make mojo renderer capable of supporting multiple streams/tracks (Closed)
Patch Set: nit Created 3 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 base::WeakPtr<MojoCdmServiceContext> mojo_cdm_service_context, 56 base::WeakPtr<MojoCdmServiceContext> mojo_cdm_service_context,
57 scoped_refptr<AudioRendererSink> audio_sink, 57 scoped_refptr<AudioRendererSink> audio_sink,
58 std::unique_ptr<VideoRendererSink> video_sink, 58 std::unique_ptr<VideoRendererSink> video_sink,
59 std::unique_ptr<media::Renderer> renderer, 59 std::unique_ptr<media::Renderer> renderer,
60 InitiateSurfaceRequestCB initiate_surface_request_cb); 60 InitiateSurfaceRequestCB initiate_surface_request_cb);
61 61
62 ~MojoRendererService() final; 62 ~MojoRendererService() final;
63 63
64 // mojom::Renderer implementation. 64 // mojom::Renderer implementation.
65 void Initialize(mojom::RendererClientAssociatedPtrInfo client, 65 void Initialize(mojom::RendererClientAssociatedPtrInfo client,
66 mojom::DemuxerStreamPtr audio, 66 base::Optional<std::vector<mojom::DemuxerStreamPtr>> streams,
67 mojom::DemuxerStreamPtr video,
68 const base::Optional<GURL>& media_url, 67 const base::Optional<GURL>& media_url,
69 const base::Optional<GURL>& first_party_for_cookies, 68 const base::Optional<GURL>& first_party_for_cookies,
70 const InitializeCallback& callback) final; 69 const InitializeCallback& callback) final;
71 void Flush(const FlushCallback& callback) final; 70 void Flush(const FlushCallback& callback) final;
72 void StartPlayingFrom(base::TimeDelta time_delta) final; 71 void StartPlayingFrom(base::TimeDelta time_delta) final;
73 void SetPlaybackRate(double playback_rate) final; 72 void SetPlaybackRate(double playback_rate) final;
74 void SetVolume(float volume) final; 73 void SetVolume(float volume) final;
75 void SetCdm(int32_t cdm_id, const SetCdmCallback& callback) final; 74 void SetCdm(int32_t cdm_id, const SetCdmCallback& callback) final;
76 void InitiateScopedSurfaceRequest( 75 void InitiateScopedSurfaceRequest(
77 const InitiateScopedSurfaceRequestCallback& callback) final; 76 const InitiateScopedSurfaceRequestCallback& callback) final;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 160
162 base::WeakPtr<MojoRendererService> weak_this_; 161 base::WeakPtr<MojoRendererService> weak_this_;
163 base::WeakPtrFactory<MojoRendererService> weak_factory_; 162 base::WeakPtrFactory<MojoRendererService> weak_factory_;
164 163
165 DISALLOW_COPY_AND_ASSIGN(MojoRendererService); 164 DISALLOW_COPY_AND_ASSIGN(MojoRendererService);
166 }; 165 };
167 166
168 } // namespace media 167 } // namespace media
169 168
170 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 169 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
OLDNEW
« no previous file with comments | « media/mojo/services/media_service_unittest.cc ('k') | media/mojo/services/mojo_renderer_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698