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 b817729bd00225849df7fb60f694bd91bdf2cc06..a9fa8563300678200fe41f96a850e83252f9906e 100644 |
--- a/mojo/dart/packages/mojo_services/lib/mojo/gpu.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/mojo/gpu.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/command_buffer.mojom.dart' as command_buffer_mojom; |
@@ -77,11 +79,53 @@ class GpuCreateOffscreenGleS2ContextParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _gpu_Gpu_CreateOffscreenGLES2Context_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 kGpu_createOffscreenGleS2Context_name = 0; |
const String GpuName = |
'mojo::Gpu'; |
+mojom_types.MojomInterface _gpu_Gpu__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Gpu") |
+ ..interfaceName = "Gpu" |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+kGpu_createOffscreenGleS2Context_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "CreateOffscreenGleS2Context") |
+ ..ordinal = kGpu_createOffscreenGleS2Context_name..parameters = _gpu_Gpu_CreateOffscreenGLES2Context_Params__(), |
+ }; |
+} |
+ |
+class _GpuServiceDescription extends service_describer.ServiceDescription { |
+ // Avoid infinite loop by overriding serviceDescription field. |
+ final service_describer.ServiceDescription serviceDescription = null; |
+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 { |
void createOffscreenGleS2Context(Object gles2Client); |
@@ -105,6 +149,9 @@ class GpuProxyImpl extends bindings.Proxy { |
String get name => GpuName; |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _GpuServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -250,6 +297,43 @@ class GpuStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _GpuServiceDescription(); |
+} |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+var _MojomDesc__ = _initDescriptions(); |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new Map<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; |
+} |
+ |
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
+ return _MojomDesc__; |
} |