| OLD | NEW |
| 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 module arc.mojom; | 5 module arc.mojom; |
| 6 | 6 |
| 7 import "video_accelerator.mojom"; | 7 import "video_decode_accelerator.mojom"; |
| 8 | 8 |
| 9 // Next MinVersion: 5 | 9 // Next MinVersion: 5 |
| 10 // Deprecated method IDs: 0 | 10 // Deprecated method IDs: 0 |
| 11 // Next method ID: 2 | 11 // Next method ID: 2 |
| 12 interface VideoHost { | 12 interface VideoHost { |
| 13 // Requests an IPC channel from Chrome's browser process to bootstrap a new | 13 // Requests an IPC channel from Chrome's browser process to bootstrap a new |
| 14 // mojo child process and a token which can be used to create a message pipe | 14 // mojo child process and a token which can be used to create a message pipe |
| 15 // connected to a new VideoAcceleratorFactory. | 15 // connected to a new VideoAcceleratorFactory. |
| 16 [MinVersion=4] | 16 [MinVersion=4] |
| 17 OnBootstrapVideoAcceleratorFactory@1() => (handle channel_handle, | 17 OnBootstrapVideoAcceleratorFactory@1() => (handle channel_handle, |
| 18 string token); | 18 string token); |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 interface VideoInstance { | 21 interface VideoInstance { |
| 22 // Establishes full-duplex communication with the host. | 22 // Establishes full-duplex communication with the host. |
| 23 Init@0(VideoHost host_ptr); | 23 Init@0(VideoHost host_ptr); |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 interface VideoAcceleratorFactory { | 26 interface VideoAcceleratorFactory { |
| 27 Create@0(VideoAcceleratorService& accelerator); | 27 CreateDecodeAccelerator@0(VideoDecodeAccelerator& decoder); |
| 28 }; | 28 }; |
| OLD | NEW |