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..4d935b2ffcd68890d8940a5037533f6b03088620 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 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); |