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

Side by Side Diff: media/mojo/interfaces/renderer.mojom

Issue 2643713003: Allow to use the DefaultRendererFactory from a Utility Process (Closed)
Patch Set: Rebase 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
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/interfaces/video_renderer_sink.mojom » ('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 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 module media.mojom; 5 module media.mojom;
6 6
7 import "media/mojo/interfaces/demuxer_stream.mojom"; 7 import "media/mojo/interfaces/demuxer_stream.mojom";
8 import "media/mojo/interfaces/media_types.mojom"; 8 import "media/mojo/interfaces/media_types.mojom";
9 import "media/mojo/interfaces/video_renderer_sink.mojom";
9 import "mojo/common/time.mojom"; 10 import "mojo/common/time.mojom";
10 import "mojo/common/unguessable_token.mojom"; 11 import "mojo/common/unguessable_token.mojom";
11 import "ui/gfx/geometry/mojo/geometry.mojom"; 12 import "ui/gfx/geometry/mojo/geometry.mojom";
12 import "url/mojo/url.mojom"; 13 import "url/mojo/url.mojom";
13 14
14 interface Renderer { 15 interface Renderer {
15 // Initializes the Renderer with either one or more audio / video |streams|, 16 // Initializes the Renderer with either one or more audio / video |streams|,
16 // or a |media_url| executing the callback with whether the initialization 17 // or a |media_url| executing the callback with whether the initialization
17 // succeeded. 18 // succeeded.
18 Initialize(associated RendererClient client, 19 Initialize(associated RendererClient client,
19 array<DemuxerStream>? streams, 20 array<DemuxerStream>? streams,
21 VideoRendererSink? video_renderer_sink,
20 url.mojom.Url? media_url, 22 url.mojom.Url? media_url,
21 url.mojom.Url? first_party_for_cookies) => (bool success); 23 url.mojom.Url? first_party_for_cookies) => (bool success);
22 24
23 // Discards any buffered data, executing callback when completed. 25 // Discards any buffered data, executing callback when completed.
24 // NOTE: If an error occurs, RendererClient::OnError() can be called 26 // NOTE: If an error occurs, RendererClient::OnError() can be called
25 // before the callback is executed. 27 // before the callback is executed.
26 Flush() => (); 28 Flush() => ();
27 29
28 // Starts rendering from |time|. 30 // Starts rendering from |time|.
29 StartPlayingFrom(mojo.common.mojom.TimeDelta time); 31 StartPlayingFrom(mojo.common.mojom.TimeDelta time);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 OnStatisticsUpdate(PipelineStatistics stats); 85 OnStatisticsUpdate(PipelineStatistics stats);
84 86
85 // Called when the remote renderering service is waiting on the decryption 87 // Called when the remote renderering service is waiting on the decryption
86 // key. 88 // key.
87 OnWaitingForDecryptionKey(); 89 OnWaitingForDecryptionKey();
88 90
89 // Executed the first time the metadata is updated, and whenever the duration 91 // Executed the first time the metadata is updated, and whenever the duration
90 // changes. 92 // changes.
91 OnDurationChange(mojo.common.mojom.TimeDelta duration); 93 OnDurationChange(mojo.common.mojom.TimeDelta duration);
92 }; 94 };
OLDNEW
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/interfaces/video_renderer_sink.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698