| 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..3f7ed5dc46255518ce51d87d33c7ae2d09e0f2ec 100644
|
| --- a/components/arc/common/video_accelerator.mojom
|
| +++ b/components/arc/common/video_accelerator.mojom
|
| @@ -50,10 +50,20 @@ struct ArcVideoAcceleratorConfig {
|
| };
|
|
|
| interface VideoAcceleratorService {
|
| - Initialize@0(ArcVideoAcceleratorConfig config) => (bool result);
|
| + enum Result {
|
| + NO_ERROR = 0,
|
| + ILLEGAL_STATE = 1,
|
| + INVALID_ARGUMENT = 2,
|
| + UNREADABLE_INPUT = 3,
|
| + PLATFORM_FAILURE = 4,
|
| + INSUFFICIENT_RESOURCES = 5,
|
| + };
|
| +
|
| + Initialize@0(ArcVideoAcceleratorConfig config)
|
| + => (bool result, [MinVersion=1] Result error);
|
|
|
| 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 +77,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);
|
|
|
|
|