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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/command_buffer.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Update to master and regenerate mojoms Created 4 years, 11 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
Index: mojo/dart/packages/mojo_services/lib/mojo/command_buffer.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/command_buffer.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/command_buffer.mojom.dart
index 6c68efc36644758b94457d45dd93c2e8a49b1528..4a2b7365711128caf2748700fd2c41c020ed566d 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/command_buffer.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/command_buffer.mojom.dart
@@ -5,9 +5,12 @@
library command_buffer_mojom;
import 'dart:async';
+import 'dart:collection';
import 'package:mojo/bindings.dart' as bindings;
import 'package:mojo/core.dart' as core;
+import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
+import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer;
import 'package:mojo_services/mojo/gpu_capabilities.mojom.dart' as gpu_capabilities_mojom;
@@ -131,6 +134,41 @@ class CommandBufferState extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBufferState__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'CommandBufferState'
+ ..fullIdentifier = 'mojo.CommandBufferState')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'NumEntries')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'GetOffset')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'PutOffset')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Token')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Error')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ContextLostReason')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Generation')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+ ];
+}
class _CommandBufferSyncClientDidInitializeParams extends bindings.Struct {
@@ -208,6 +246,26 @@ class _CommandBufferSyncClientDidInitializeParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBufferSyncClient_DidInitialize_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferSyncClientDidInitializeParams'
+ ..fullIdentifier = 'mojo._CommandBufferSyncClientDidInitializeParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Success')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Capabilities')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_gpu_capabilities_GpuCapabilities__'
+ ..typeKey = '_gpu_capabilities_GpuCapabilities__'
+ )),
+ ];
+}
class _CommandBufferSyncClientDidMakeProgressParams extends bindings.Struct {
@@ -276,6 +334,22 @@ class _CommandBufferSyncClientDidMakeProgressParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBufferSyncClient_DidMakeProgress_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferSyncClientDidMakeProgressParams'
+ ..fullIdentifier = 'mojo._CommandBufferSyncClientDidMakeProgressParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'State')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_command_buffer_CommandBufferState__'
+ ..typeKey = '_command_buffer_CommandBufferState__'
+ )),
+ ];
+}
class _CommandBufferSyncPointClientDidInsertSyncPointParams extends bindings.Struct {
@@ -343,6 +417,17 @@ class _CommandBufferSyncPointClientDidInsertSyncPointParams extends bindings.Str
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBufferSyncPointClient_DidInsertSyncPoint_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferSyncPointClientDidInsertSyncPointParams'
+ ..fullIdentifier = 'mojo._CommandBufferSyncPointClientDidInsertSyncPointParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SyncPoint')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+ ];
+}
class _CommandBufferLostContextObserverDidLoseContextParams extends bindings.Struct {
@@ -410,6 +495,17 @@ class _CommandBufferLostContextObserverDidLoseContextParams extends bindings.Str
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBufferLostContextObserver_DidLoseContext_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferLostContextObserverDidLoseContextParams'
+ ..fullIdentifier = 'mojo._CommandBufferLostContextObserverDidLoseContextParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ContextLostReason')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+ ];
+}
class _CommandBufferInitializeParams extends bindings.Struct {
@@ -500,6 +596,47 @@ class _CommandBufferInitializeParams extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _command_buffer_CommandBuffer_Initialize_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferInitializeParams'
+ ..fullIdentifier = 'mojo._CommandBufferInitializeParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SyncClient')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_command_buffer_CommandBufferSyncClient__'
+ ..typeKey = '_command_buffer_CommandBufferSyncClient__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SyncPointClient')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_command_buffer_CommandBufferSyncPointClient__'
+ ..typeKey = '_command_buffer_CommandBufferSyncPointClient__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'LostObserver')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_command_buffer_CommandBufferLostContextObserver__'
+ ..typeKey = '_command_buffer_CommandBufferLostContextObserver__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SharedState')
+ ..type = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.sharedBuffer
+..nullable = false)),
+ ];
+}
class _CommandBufferSetGetBufferParams extends bindings.Struct {
@@ -567,6 +704,17 @@ class _CommandBufferSetGetBufferParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBuffer_SetGetBuffer_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferSetGetBufferParams'
+ ..fullIdentifier = 'mojo._CommandBufferSetGetBufferParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Buffer')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+ ];
+}
class _CommandBufferFlushParams extends bindings.Struct {
@@ -634,6 +782,17 @@ class _CommandBufferFlushParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBuffer_Flush_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferFlushParams'
+ ..fullIdentifier = 'mojo._CommandBufferFlushParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'PutOffset')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+ ];
+}
class _CommandBufferMakeProgressParams extends bindings.Struct {
@@ -701,6 +860,17 @@ class _CommandBufferMakeProgressParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBuffer_MakeProgress_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferMakeProgressParams'
+ ..fullIdentifier = 'mojo._CommandBufferMakeProgressParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'LastGetOffset')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+ ];
+}
class _CommandBufferRegisterTransferBufferParams extends bindings.Struct {
@@ -783,6 +953,28 @@ class _CommandBufferRegisterTransferBufferParams extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _command_buffer_CommandBuffer_RegisterTransferBuffer_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferRegisterTransferBufferParams'
+ ..fullIdentifier = 'mojo._CommandBufferRegisterTransferBufferParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Id')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TransferBuffer')
+ ..type = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.sharedBuffer
+..nullable = false)),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Size')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+ ];
+}
class _CommandBufferDestroyTransferBufferParams extends bindings.Struct {
@@ -850,6 +1042,17 @@ class _CommandBufferDestroyTransferBufferParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBuffer_DestroyTransferBuffer_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferDestroyTransferBufferParams'
+ ..fullIdentifier = 'mojo._CommandBufferDestroyTransferBufferParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Id')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+ ];
+}
class _CommandBufferInsertSyncPointParams extends bindings.Struct {
@@ -917,6 +1120,17 @@ class _CommandBufferInsertSyncPointParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBuffer_InsertSyncPoint_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferInsertSyncPointParams'
+ ..fullIdentifier = 'mojo._CommandBufferInsertSyncPointParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Retire')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+ ];
+}
class _CommandBufferRetireSyncPointParams extends bindings.Struct {
@@ -984,6 +1198,17 @@ class _CommandBufferRetireSyncPointParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBuffer_RetireSyncPoint_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferRetireSyncPointParams'
+ ..fullIdentifier = 'mojo._CommandBufferRetireSyncPointParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SyncPoint')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+ ];
+}
class _CommandBufferEchoParams extends bindings.Struct {
@@ -1042,6 +1267,13 @@ class _CommandBufferEchoParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBuffer_Echo_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_CommandBufferEchoParams'
+ ..fullIdentifier = 'mojo._CommandBufferEchoParams')
+ ..fields = <mojom_types.StructField>[];
+}
class CommandBufferEchoResponseParams extends bindings.Struct {
@@ -1100,10 +1332,45 @@ class CommandBufferEchoResponseParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _command_buffer_CommandBuffer_Echo_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'CommandBufferEchoResponseParams'
+ ..fullIdentifier = 'mojo.CommandBufferEchoResponseParams')
+ ..fields = <mojom_types.StructField>[];
+}
+
const int _CommandBufferSyncClient_didInitializeName = 0;
const int _CommandBufferSyncClient_didMakeProgressName = 1;
+mojom_types.MojomInterface _command_buffer_CommandBufferSyncClient__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'CommandBufferSyncClient'
+ ..fullIdentifier = 'mojo.CommandBufferSyncClient')
+ ..interfaceName = 'CommandBufferSyncClient'
+ ..methods = <int, mojom_types.MojomMethod>{
+_CommandBufferSyncClient_didInitializeName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'DidInitialize')
+ ..ordinal = _CommandBufferSyncClient_didInitializeName..parameters = _command_buffer_CommandBufferSyncClient_DidInitialize_Params__(),_CommandBufferSyncClient_didMakeProgressName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'DidMakeProgress')
+ ..ordinal = _CommandBufferSyncClient_didMakeProgressName..parameters = _command_buffer_CommandBufferSyncClient_DidMakeProgress_Params__(),
+ };
+}
+
+class _CommandBufferSyncClientServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _command_buffer_CommandBufferSyncClient__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class CommandBufferSyncClient {
static const String serviceName = null;
void didInitialize(bool success, gpu_capabilities_mojom.GpuCapabilities capabilities);
@@ -1126,6 +1393,9 @@ class _CommandBufferSyncClientProxyImpl extends bindings.Proxy {
return new _CommandBufferSyncClientProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CommandBufferSyncClientServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -1284,10 +1554,39 @@ class CommandBufferSyncClientStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CommandBufferSyncClientServiceDescription();
}
const int _CommandBufferSyncPointClient_didInsertSyncPointName = 0;
+mojom_types.MojomInterface _command_buffer_CommandBufferSyncPointClient__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'CommandBufferSyncPointClient'
+ ..fullIdentifier = 'mojo.CommandBufferSyncPointClient')
+ ..interfaceName = 'CommandBufferSyncPointClient'
+ ..methods = <int, mojom_types.MojomMethod>{
+_CommandBufferSyncPointClient_didInsertSyncPointName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'DidInsertSyncPoint')
+ ..ordinal = _CommandBufferSyncPointClient_didInsertSyncPointName..parameters = _command_buffer_CommandBufferSyncPointClient_DidInsertSyncPoint_Params__(),
+ };
+}
+
+class _CommandBufferSyncPointClientServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _command_buffer_CommandBufferSyncPointClient__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class CommandBufferSyncPointClient {
static const String serviceName = null;
void didInsertSyncPoint(int syncPoint);
@@ -1309,6 +1608,9 @@ class _CommandBufferSyncPointClientProxyImpl extends bindings.Proxy {
return new _CommandBufferSyncPointClientProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CommandBufferSyncPointClientServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -1452,10 +1754,39 @@ class CommandBufferSyncPointClientStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CommandBufferSyncPointClientServiceDescription();
}
const int _CommandBufferLostContextObserver_didLoseContextName = 0;
+mojom_types.MojomInterface _command_buffer_CommandBufferLostContextObserver__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'CommandBufferLostContextObserver'
+ ..fullIdentifier = 'mojo.CommandBufferLostContextObserver')
+ ..interfaceName = 'CommandBufferLostContextObserver'
+ ..methods = <int, mojom_types.MojomMethod>{
+_CommandBufferLostContextObserver_didLoseContextName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'DidLoseContext')
+ ..ordinal = _CommandBufferLostContextObserver_didLoseContextName..parameters = _command_buffer_CommandBufferLostContextObserver_DidLoseContext_Params__(),
+ };
+}
+
+class _CommandBufferLostContextObserverServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _command_buffer_CommandBufferLostContextObserver__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class CommandBufferLostContextObserver {
static const String serviceName = null;
void didLoseContext(int contextLostReason);
@@ -1477,6 +1808,9 @@ class _CommandBufferLostContextObserverProxyImpl extends bindings.Proxy {
return new _CommandBufferLostContextObserverProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CommandBufferLostContextObserverServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -1620,6 +1954,10 @@ class CommandBufferLostContextObserverStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CommandBufferLostContextObserverServiceDescription();
}
const int _CommandBuffer_initializeName = 0;
@@ -1632,6 +1970,48 @@ const int _CommandBuffer_insertSyncPointName = 6;
const int _CommandBuffer_retireSyncPointName = 7;
const int _CommandBuffer_echoName = 8;
+mojom_types.MojomInterface _command_buffer_CommandBuffer__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'CommandBuffer'
+ ..fullIdentifier = 'mojo.CommandBuffer')
+ ..interfaceName = 'CommandBuffer'
+ ..methods = <int, mojom_types.MojomMethod>{
+_CommandBuffer_initializeName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Initialize')
+ ..ordinal = _CommandBuffer_initializeName..parameters = _command_buffer_CommandBuffer_Initialize_Params__(),_CommandBuffer_setGetBufferName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SetGetBuffer')
+ ..ordinal = _CommandBuffer_setGetBufferName..parameters = _command_buffer_CommandBuffer_SetGetBuffer_Params__(),_CommandBuffer_flushName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Flush')
+ ..ordinal = _CommandBuffer_flushName..parameters = _command_buffer_CommandBuffer_Flush_Params__(),_CommandBuffer_makeProgressName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MakeProgress')
+ ..ordinal = _CommandBuffer_makeProgressName..parameters = _command_buffer_CommandBuffer_MakeProgress_Params__(),_CommandBuffer_registerTransferBufferName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'RegisterTransferBuffer')
+ ..ordinal = _CommandBuffer_registerTransferBufferName..parameters = _command_buffer_CommandBuffer_RegisterTransferBuffer_Params__(),_CommandBuffer_destroyTransferBufferName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'DestroyTransferBuffer')
+ ..ordinal = _CommandBuffer_destroyTransferBufferName..parameters = _command_buffer_CommandBuffer_DestroyTransferBuffer_Params__(),_CommandBuffer_insertSyncPointName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'InsertSyncPoint')
+ ..ordinal = _CommandBuffer_insertSyncPointName..parameters = _command_buffer_CommandBuffer_InsertSyncPoint_Params__(),_CommandBuffer_retireSyncPointName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'RetireSyncPoint')
+ ..ordinal = _CommandBuffer_retireSyncPointName..parameters = _command_buffer_CommandBuffer_RetireSyncPoint_Params__(),_CommandBuffer_echoName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Echo')
+ ..ordinal = _CommandBuffer_echoName
+ ..responseParams = _command_buffer_CommandBuffer_Echo_ResponseParams__()..parameters = _command_buffer_CommandBuffer_Echo_Params__(),
+ };
+}
+
+class _CommandBufferServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _command_buffer_CommandBuffer__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class CommandBuffer {
static const String serviceName = null;
void initialize(Object syncClient, Object syncPointClient, Object lostObserver, core.MojoSharedBuffer sharedState);
@@ -1661,6 +2041,9 @@ class _CommandBufferProxyImpl extends bindings.Proxy {
return new _CommandBufferProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CommandBufferServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _CommandBuffer_echoName:
@@ -1961,6 +2344,89 @@ class CommandBufferStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CommandBufferServiceDescription();
}
+
+
+
+
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new HashMap<String, mojom_types.UserDefinedType>();
+map["_command_buffer_CommandBufferState__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBufferState__();
+map["_command_buffer_CommandBufferSyncClient_DidInitialize_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBufferSyncClient_DidInitialize_Params__();
+map["_command_buffer_CommandBufferSyncClient_DidMakeProgress_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBufferSyncClient_DidMakeProgress_Params__();
+map["_command_buffer_CommandBufferSyncPointClient_DidInsertSyncPoint_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBufferSyncPointClient_DidInsertSyncPoint_Params__();
+map["_command_buffer_CommandBufferLostContextObserver_DidLoseContext_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBufferLostContextObserver_DidLoseContext_Params__();
+map["_command_buffer_CommandBuffer_Initialize_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBuffer_Initialize_Params__();
+map["_command_buffer_CommandBuffer_SetGetBuffer_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBuffer_SetGetBuffer_Params__();
+map["_command_buffer_CommandBuffer_Flush_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBuffer_Flush_Params__();
+map["_command_buffer_CommandBuffer_MakeProgress_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBuffer_MakeProgress_Params__();
+map["_command_buffer_CommandBuffer_RegisterTransferBuffer_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBuffer_RegisterTransferBuffer_Params__();
+map["_command_buffer_CommandBuffer_DestroyTransferBuffer_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBuffer_DestroyTransferBuffer_Params__();
+map["_command_buffer_CommandBuffer_InsertSyncPoint_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBuffer_InsertSyncPoint_Params__();
+map["_command_buffer_CommandBuffer_RetireSyncPoint_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBuffer_RetireSyncPoint_Params__();
+map["_command_buffer_CommandBuffer_Echo_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBuffer_Echo_Params__();
+map["_command_buffer_CommandBuffer_Echo_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _command_buffer_CommandBuffer_Echo_ResponseParams__();
+map["_command_buffer_CommandBufferSyncClient__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _command_buffer_CommandBufferSyncClient__();
+map["_command_buffer_CommandBufferSyncPointClient__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _command_buffer_CommandBufferSyncPointClient__();
+map["_command_buffer_CommandBufferLostContextObserver__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _command_buffer_CommandBufferLostContextObserver__();
+map["_command_buffer_CommandBuffer__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _command_buffer_CommandBuffer__();
+gpu_capabilities_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
+ map[s] = udt;
+});
+
+ return map;
+}
+
+var _MojomDesc;
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ if (_MojomDesc == null) {
+ _MojomDesc = _initDescriptions();
+ }
+ return _MojomDesc;
+}
+

Powered by Google App Engine
This is Rietveld 408576698