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

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

Issue 1978973002: Moves video frame callbacks from VideoFrameCompositor to Renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addresses comments Created 4 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 | « media/media.gyp ('k') | media/mojo/services/media_mojo_unittest.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 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.interfaces; 5 module media.interfaces;
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 "ui/mojo/geometry/geometry.mojom";
9 10
10 interface Renderer { 11 interface Renderer {
11 // Initializes the Renderer with one or both of an audio and video stream, 12 // Initializes the Renderer with one or both of an audio and video stream,
12 // executing the callback with whether the initialization succeeded. 13 // executing the callback with whether the initialization succeeded.
13 Initialize(RendererClient client, 14 Initialize(RendererClient client,
14 DemuxerStream? audio, 15 DemuxerStream? audio,
15 DemuxerStream? video) => (bool success); 16 DemuxerStream? video) => (bool success);
16 17
17 // Discards any buffered data, executing callback when completed. 18 // Discards any buffered data, executing callback when completed.
18 // NOTE: If an error occurs, RendererClient::OnError() can be called 19 // NOTE: If an error occurs, RendererClient::OnError() can be called
(...skipping 26 matching lines...) Expand all
45 // Called to report buffering state changes, see media_types.mojom. 46 // Called to report buffering state changes, see media_types.mojom.
46 OnBufferingStateChange(BufferingState state); 47 OnBufferingStateChange(BufferingState state);
47 48
48 // Executed when rendering has reached the end of stream. 49 // Executed when rendering has reached the end of stream.
49 OnEnded(); 50 OnEnded();
50 51
51 // Executed if any error was encountered during decode or rendering. If 52 // Executed if any error was encountered during decode or rendering. If
52 // this error happens during an operation that has a completion callback, 53 // this error happens during an operation that has a completion callback,
53 // OnError() will be called before firing the completion callback. 54 // OnError() will be called before firing the completion callback.
54 OnError(); 55 OnError();
56
57 // Executed for the first video frame and whenever natural size changes.
58 OnVideoNaturalSizeChange(mojo.Size size);
59
60 // Executed for the first video frame and whenever opacity changes.
61 OnVideoOpacityChange(bool opaque);
55 }; 62 };
OLDNEW
« no previous file with comments | « media/media.gyp ('k') | media/mojo/services/media_mojo_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698