Index: mojo/dart/packages/mojo_services/lib/mojo/gpu.mojom.dart |
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/gpu.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/gpu.mojom.dart |
index ac2dd992fd90280a6a1569cdee5e8c6613521fd1..94c7fe08a1f9888cf2092ec956a6ec8b2cc9602a 100644 |
--- a/mojo/dart/packages/mojo_services/lib/mojo/gpu.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/mojo/gpu.mojom.dart |
@@ -5,9 +5,12 @@ |
library gpu_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/command_buffer.mojom.dart' as command_buffer_mojom; |
@@ -76,9 +79,52 @@ class _GpuCreateOffscreenGles2ContextParams extends bindings.Struct { |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _gpu_Gpu_CreateOffscreenGLES2Context_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_GpuCreateOffscreenGles2ContextParams' |
+ ..fullIdentifier = 'mojo._GpuCreateOffscreenGles2ContextParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Gles2Client') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..isInterfaceRequest = true |
+ ..identifier = '_command_buffer_CommandBuffer__' |
+ ..typeKey = '_command_buffer_CommandBuffer__' |
+ )), |
+ ]; |
+} |
+ |
const int _Gpu_createOffscreenGles2ContextName = 0; |
+mojom_types.MojomInterface _gpu_Gpu__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'Gpu' |
+ ..fullIdentifier = 'mojo.Gpu') |
+ ..interfaceName = 'Gpu' |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+_Gpu_createOffscreenGles2ContextName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CreateOffscreenGles2Context') |
+ ..ordinal = _Gpu_createOffscreenGles2ContextName..parameters = _gpu_Gpu_CreateOffscreenGLES2Context_Params__(), |
+ }; |
+} |
+ |
+class _GpuServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _gpu_Gpu__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class Gpu { |
static const String serviceName = "mojo::Gpu"; |
void createOffscreenGles2Context(Object gles2Client); |
@@ -100,6 +146,9 @@ class _GpuProxyImpl extends bindings.Proxy { |
return new _GpuProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _GpuServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -243,6 +292,38 @@ class GpuStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _GpuServiceDescription(); |
} |
+ |
+ |
+ |
+ |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new HashMap<String, mojom_types.UserDefinedType>(); |
+map["_gpu_Gpu_CreateOffscreenGLES2Context_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _gpu_Gpu_CreateOffscreenGLES2Context_Params__(); |
+map["_gpu_Gpu__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _gpu_Gpu__(); |
+command_buffer_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; |
+} |
+ |