| 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; | 5 module arc; |
| 6 | 6 |
| 7 interface VideoHost { | 7 interface VideoHost { |
| 8 // Notifies Chrome a request for ipc channel of video acceleration. | 8 // Requests an ipc channel from Chrome to be used in the video accelerator. |
| 9 OnRequestArcVideoAcceleratorChannel() => (handle channel_handle); | 9 // |pid| is the id of mojo child process. |
| 10 // Replies with |channel_handle| of mojo initial message pipe and |token| for |
| 11 // creating the client end of VideoAcceleratorService message pipe. |
| 12 // Replys invalid handle and empty token if any failure. |
| 13 OnRequestArcVideoAcceleratorChannel(uint32 pid) => (handle channel_handle, |
| 14 string token); |
| 10 }; | 15 }; |
| 11 | 16 |
| 12 interface VideoInstance { | 17 interface VideoInstance { |
| 13 // Establishes full-duplex communication with the host. | 18 // Establishes full-duplex communication with the host. |
| 14 Init(VideoHost host_ptr); | 19 Init(VideoHost host_ptr); |
| 15 }; | 20 }; |
| OLD | NEW |