Chromium Code Reviews| Index: components/arc/common/video_accelerator.mojom |
| diff --git a/components/arc/common/video_accelerator.mojom b/components/arc/common/video_accelerator.mojom |
| index 229d766dde2eb76a5127b5f195330a116fe074d3..dc8dc7639d6814cf911f2c980715cd4fdbaed00f 100644 |
| --- a/components/arc/common/video_accelerator.mojom |
| +++ b/components/arc/common/video_accelerator.mojom |
| @@ -50,10 +50,22 @@ struct ArcVideoAcceleratorConfig { |
| }; |
| interface VideoAcceleratorService { |
| - Initialize@0(ArcVideoAcceleratorConfig config) => (bool result); |
| + enum Result { |
| + SUCCESS = 0, |
| + ILLEGAL_STATE = 1, |
| + INVALID_ARGUMENT = 2, |
| + UNREADABLE_INPUT = 3, |
| + PLATFORM_FAILURE = 4, |
| + INSUFFICIENT_RESOURCES = 5, |
| + }; |
| + |
| + DeprecatedInitialize@0(ArcVideoAcceleratorConfig config) => (bool result); |
| + |
| + [MinVersion=1] |
| + Initialize@7(ArcVideoAcceleratorConfig config) => (Result error); |
|
Pawel Osciak
2016/06/06 07:17:20
s/error/result/ ?
|
| BindSharedMemory@1(PortType port, uint32 index, handle ashmem_fd, |
| - uint32 offset, uint32 length); |
| + uint32 offset, uint32 length); |
| BindDmabuf@2(PortType port, uint32 index, handle dmabuf_fd, int32 stride); |
| @@ -67,17 +79,9 @@ interface VideoAcceleratorService { |
| }; |
| interface VideoAcceleratorServiceClient { |
| - enum Error { |
| - NO_ERROR = 0, |
| - ILLEGAL_STATE = 1, |
| - INVALID_ARGUMENT = 2, |
| - UNREADABLE_INPUT = 3, |
| - PLATFORM_FAILURE = 4, |
| - }; |
| - |
| Init@0(VideoAcceleratorService service_ptr); |
| - OnError@1(Error error); |
| + OnError@1(VideoAcceleratorService.Result error); |
| OnBufferDone@2(PortType port, uint32 index, BufferMetadata metadata); |