| 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 eb3316cf70351e8f71171d84f80da17332613fd9..06eebf1978b2d91ff60ecc6c4d9d256ce54ed1e9 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
|
| @@ -8,6 +8,8 @@ import 'dart:async';
|
|
|
| import 'package:mojo/bindings.dart' as bindings;
|
| import 'package:mojo/core.dart' as core;
|
| +import 'package:mojo/mojo/mojom_types.mojom.dart' as mojom_types;
|
| +import 'package:mojo/mojo/service_describer.mojom.dart' as service_describer;
|
| import 'package:mojo_services/mojo/gpu_capabilities.mojom.dart' as gpu_capabilities_mojom;
|
|
|
|
|
| @@ -132,6 +134,40 @@ class CommandBufferState extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBufferState__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -209,6 +245,25 @@ class CommandBufferSyncClientDidInitializeParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBufferSyncClient_DidInitialize_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -277,6 +332,21 @@ class CommandBufferSyncClientDidMakeProgressParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBufferSyncClient_DidMakeProgress_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -344,6 +414,16 @@ class CommandBufferSyncPointClientDidInsertSyncPointParams extends bindings.Stru
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBufferSyncPointClient_DidInsertSyncPoint_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -411,6 +491,16 @@ class CommandBufferLostContextObserverDidLoseContextParams extends bindings.Stru
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBufferLostContextObserver_DidLoseContext_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -501,6 +591,46 @@ class CommandBufferInitializeParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBuffer_Initialize_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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.SHARED_BUFFER
|
| +..nullable = false)),
|
| + ];
|
| +}
|
| +
|
|
|
| class CommandBufferSetGetBufferParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -568,6 +698,16 @@ class CommandBufferSetGetBufferParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBuffer_SetGetBuffer_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -635,6 +775,16 @@ class CommandBufferFlushParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBuffer_Flush_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -702,6 +852,16 @@ class CommandBufferMakeProgressParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBuffer_MakeProgress_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -784,6 +944,27 @@ class CommandBufferRegisterTransferBufferParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBuffer_RegisterTransferBuffer_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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.SHARED_BUFFER
|
| +..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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -851,6 +1032,16 @@ class CommandBufferDestroyTransferBufferParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBuffer_DestroyTransferBuffer_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -918,6 +1109,16 @@ class CommandBufferInsertSyncPointParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBuffer_InsertSyncPoint_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -985,6 +1186,16 @@ class CommandBufferRetireSyncPointParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBuffer_RetireSyncPoint_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -1043,6 +1254,12 @@ class CommandBufferEchoParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBuffer_Echo_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'CommandBufferEchoParams')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
| +
|
|
|
| class CommandBufferEchoResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -1101,12 +1318,46 @@ class CommandBufferEchoResponseParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _command_buffer_CommandBuffer_Echo_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'CommandBufferEchoResponseParams')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
| +
|
| +
|
| const int kCommandBufferSyncClient_didInitialize_name = 0;
|
| const int kCommandBufferSyncClient_didMakeProgress_name = 1;
|
|
|
| const String CommandBufferSyncClientName =
|
| 'mojo::CommandBufferSyncClient';
|
|
|
| +mojom_types.MojomInterface _command_buffer_CommandBufferSyncClient__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "CommandBufferSyncClient")
|
| + ..interfaceName = "CommandBufferSyncClient"
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +kCommandBufferSyncClient_didInitialize_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "DidInitialize")
|
| + ..ordinal = kCommandBufferSyncClient_didInitialize_name..parameters = _command_buffer_CommandBufferSyncClient_DidInitialize_Params__(),kCommandBufferSyncClient_didMakeProgress_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "DidMakeProgress")
|
| + ..ordinal = kCommandBufferSyncClient_didMakeProgress_name..parameters = _command_buffer_CommandBufferSyncClient_DidMakeProgress_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _CommandBufferSyncClientServiceDescription extends service_describer.ServiceDescription {
|
| + // Avoid infinite loop by overriding serviceDescription field.
|
| + final service_describer.ServiceDescription serviceDescription = null;
|
| +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 {
|
| void didInitialize(bool success, gpu_capabilities_mojom.GpuCapabilities capabilities);
|
| void didMakeProgress(CommandBufferState state);
|
| @@ -1131,6 +1382,9 @@ class CommandBufferSyncClientProxyImpl extends bindings.Proxy {
|
|
|
| String get name => CommandBufferSyncClientName;
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _CommandBufferSyncClientServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -1292,6 +1546,9 @@ class CommandBufferSyncClientStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _CommandBufferSyncClientServiceDescription();
|
| }
|
|
|
| const int kCommandBufferSyncPointClient_didInsertSyncPoint_name = 0;
|
| @@ -1299,6 +1556,31 @@ const int kCommandBufferSyncPointClient_didInsertSyncPoint_name = 0;
|
| const String CommandBufferSyncPointClientName =
|
| 'mojo::CommandBufferSyncPointClient';
|
|
|
| +mojom_types.MojomInterface _command_buffer_CommandBufferSyncPointClient__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "CommandBufferSyncPointClient")
|
| + ..interfaceName = "CommandBufferSyncPointClient"
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +kCommandBufferSyncPointClient_didInsertSyncPoint_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "DidInsertSyncPoint")
|
| + ..ordinal = kCommandBufferSyncPointClient_didInsertSyncPoint_name..parameters = _command_buffer_CommandBufferSyncPointClient_DidInsertSyncPoint_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _CommandBufferSyncPointClientServiceDescription extends service_describer.ServiceDescription {
|
| + // Avoid infinite loop by overriding serviceDescription field.
|
| + final service_describer.ServiceDescription serviceDescription = null;
|
| +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 {
|
| void didInsertSyncPoint(int syncPoint);
|
|
|
| @@ -1322,6 +1604,9 @@ class CommandBufferSyncPointClientProxyImpl extends bindings.Proxy {
|
|
|
| String get name => CommandBufferSyncPointClientName;
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _CommandBufferSyncPointClientServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -1467,6 +1752,9 @@ class CommandBufferSyncPointClientStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _CommandBufferSyncPointClientServiceDescription();
|
| }
|
|
|
| const int kCommandBufferLostContextObserver_didLoseContext_name = 0;
|
| @@ -1474,6 +1762,31 @@ const int kCommandBufferLostContextObserver_didLoseContext_name = 0;
|
| const String CommandBufferLostContextObserverName =
|
| 'mojo::CommandBufferLostContextObserver';
|
|
|
| +mojom_types.MojomInterface _command_buffer_CommandBufferLostContextObserver__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "CommandBufferLostContextObserver")
|
| + ..interfaceName = "CommandBufferLostContextObserver"
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +kCommandBufferLostContextObserver_didLoseContext_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "DidLoseContext")
|
| + ..ordinal = kCommandBufferLostContextObserver_didLoseContext_name..parameters = _command_buffer_CommandBufferLostContextObserver_DidLoseContext_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _CommandBufferLostContextObserverServiceDescription extends service_describer.ServiceDescription {
|
| + // Avoid infinite loop by overriding serviceDescription field.
|
| + final service_describer.ServiceDescription serviceDescription = null;
|
| +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 {
|
| void didLoseContext(int contextLostReason);
|
|
|
| @@ -1497,6 +1810,9 @@ class CommandBufferLostContextObserverProxyImpl extends bindings.Proxy {
|
|
|
| String get name => CommandBufferLostContextObserverName;
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _CommandBufferLostContextObserverServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -1642,6 +1958,9 @@ class CommandBufferLostContextObserverStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _CommandBufferLostContextObserverServiceDescription();
|
| }
|
|
|
| const int kCommandBuffer_initialize_name = 0;
|
| @@ -1657,6 +1976,48 @@ const int kCommandBuffer_echo_name = 8;
|
| const String CommandBufferName =
|
| 'mojo::CommandBuffer';
|
|
|
| +mojom_types.MojomInterface _command_buffer_CommandBuffer__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "CommandBuffer")
|
| + ..interfaceName = "CommandBuffer"
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +kCommandBuffer_initialize_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "Initialize")
|
| + ..ordinal = kCommandBuffer_initialize_name..parameters = _command_buffer_CommandBuffer_Initialize_Params__(),kCommandBuffer_setGetBuffer_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "SetGetBuffer")
|
| + ..ordinal = kCommandBuffer_setGetBuffer_name..parameters = _command_buffer_CommandBuffer_SetGetBuffer_Params__(),kCommandBuffer_flush_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "Flush")
|
| + ..ordinal = kCommandBuffer_flush_name..parameters = _command_buffer_CommandBuffer_Flush_Params__(),kCommandBuffer_makeProgress_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "MakeProgress")
|
| + ..ordinal = kCommandBuffer_makeProgress_name..parameters = _command_buffer_CommandBuffer_MakeProgress_Params__(),kCommandBuffer_registerTransferBuffer_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "RegisterTransferBuffer")
|
| + ..ordinal = kCommandBuffer_registerTransferBuffer_name..parameters = _command_buffer_CommandBuffer_RegisterTransferBuffer_Params__(),kCommandBuffer_destroyTransferBuffer_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "DestroyTransferBuffer")
|
| + ..ordinal = kCommandBuffer_destroyTransferBuffer_name..parameters = _command_buffer_CommandBuffer_DestroyTransferBuffer_Params__(),kCommandBuffer_insertSyncPoint_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "InsertSyncPoint")
|
| + ..ordinal = kCommandBuffer_insertSyncPoint_name..parameters = _command_buffer_CommandBuffer_InsertSyncPoint_Params__(),kCommandBuffer_retireSyncPoint_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "RetireSyncPoint")
|
| + ..ordinal = kCommandBuffer_retireSyncPoint_name..parameters = _command_buffer_CommandBuffer_RetireSyncPoint_Params__(),kCommandBuffer_echo_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "Echo")
|
| + ..ordinal = kCommandBuffer_echo_name
|
| + ..responseParams = _command_buffer_CommandBuffer_Echo_ResponseParams__()..parameters = _command_buffer_CommandBuffer_Echo_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _CommandBufferServiceDescription extends service_describer.ServiceDescription {
|
| + // Avoid infinite loop by overriding serviceDescription field.
|
| + final service_describer.ServiceDescription serviceDescription = null;
|
| +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 {
|
| void initialize(Object syncClient, Object syncPointClient, Object lostObserver, core.MojoSharedBuffer sharedState);
|
| void setGetBuffer(int buffer);
|
| @@ -1688,6 +2049,9 @@ class CommandBufferProxyImpl extends bindings.Proxy {
|
|
|
| String get name => CommandBufferName;
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _CommandBufferServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case kCommandBuffer_echo_name:
|
| @@ -1997,6 +2361,190 @@ class CommandBufferStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _CommandBufferServiceDescription();
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +var _MojomDesc__ = _initDescriptions();
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new Map<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_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_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_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;
|
| +}
|
| +
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + return _MojomDesc__;
|
| }
|
|
|
|
|
|
|