| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module media.mojom; |
| 6 |
| 7 import "media/mojo/interfaces/media_types.mojom"; |
| 8 import "mojo/common/time.mojom"; |
| 9 |
| 10 interface VideoRendererSinkRenderCallback { |
| 11 |
| 12 [Sync] |
| 13 Render(mojo.common.mojom.TimeTicks deadline_min, |
| 14 mojo.common.mojom.TimeTicks deadline_max, |
| 15 bool background_rendering) => (VideoFrame? frame); |
| 16 |
| 17 OnFrameDropped(); |
| 18 }; |
| 19 |
| 20 interface VideoRendererSink { |
| 21 |
| 22 Start(associated VideoRendererSinkRenderCallback? render_callback); |
| 23 Stop(); |
| 24 PaintSingleFrame(VideoFrame? frame, bool repaint_duplicate_frame); |
| 25 }; |
| OLD | NEW |