Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: components/arc/common/video_accelerator.mojom

Issue 2036723002: Limit the number of ARC codec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address dcheng's comments: static_assert Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/gpu/gpu_arc_video_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/gpu/gpu_arc_video_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698