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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/gpu_capabilities.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/gpu_capabilities.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/gpu_capabilities.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/gpu_capabilities.mojom.dart
index c9c57fcd5b026e50c8142ddbe84fa5cd46c4684d..4caed6fcd764f835e36da0fe4d436a1a4bbd6a59 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/gpu_capabilities.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/gpu_capabilities.mojom.dart
@@ -5,9 +5,12 @@
library gpu_capabilities_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;
+
@@ -94,6 +97,25 @@ class GpuShaderPrecision extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _gpu_capabilities_GpuShaderPrecision__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'GpuShaderPrecision'
+ ..fullIdentifier = 'mojo.GpuShaderPrecision')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MinRange')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxRange')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Precision')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+ ];
+}
class GpuPerStagePrecisions extends bindings.Struct {
@@ -212,6 +234,67 @@ class GpuPerStagePrecisions extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _gpu_capabilities_GpuPerStagePrecisions__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'GpuPerStagePrecisions'
+ ..fullIdentifier = 'mojo.GpuPerStagePrecisions')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'LowInt')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_gpu_capabilities_GpuShaderPrecision__'
+ ..typeKey = '_gpu_capabilities_GpuShaderPrecision__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MediumInt')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_gpu_capabilities_GpuShaderPrecision__'
+ ..typeKey = '_gpu_capabilities_GpuShaderPrecision__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'HighInt')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_gpu_capabilities_GpuShaderPrecision__'
+ ..typeKey = '_gpu_capabilities_GpuShaderPrecision__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'LowFloat')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_gpu_capabilities_GpuShaderPrecision__'
+ ..typeKey = '_gpu_capabilities_GpuShaderPrecision__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MediumFloat')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_gpu_capabilities_GpuShaderPrecision__'
+ ..typeKey = '_gpu_capabilities_GpuShaderPrecision__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'HighFloat')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_gpu_capabilities_GpuShaderPrecision__'
+ ..typeKey = '_gpu_capabilities_GpuShaderPrecision__'
+ )),
+ ];
+}
class GpuCapabilities extends bindings.Struct {
@@ -542,5 +625,171 @@ class GpuCapabilities extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _gpu_capabilities_GpuCapabilities__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'GpuCapabilities'
+ ..fullIdentifier = 'mojo.GpuCapabilities')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'VertexShaderPrecisions')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_gpu_capabilities_GpuPerStagePrecisions__'
+ ..typeKey = '_gpu_capabilities_GpuPerStagePrecisions__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'FragmentShaderPrecisions')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_gpu_capabilities_GpuPerStagePrecisions__'
+ ..typeKey = '_gpu_capabilities_GpuPerStagePrecisions__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxCombinedTextureImageUnits')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxCubeMapTextureSize')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxFragmentUniformVectors')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxRenderbufferSize')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxTextureImageUnits')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxTextureSize')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxVaryingVectors')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxVertexAttribs')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxVertexTextureImageUnits')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxVertexUniformVectors')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'NumCompressedTextureFormats')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'NumShaderBinaryFormats')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'BindGeneratesResourceChromium')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'PostSubBuffer')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'EglImageExternal')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TextureFormatBgra8888')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TextureFormatEtc1')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TextureFormatEtc1Npot')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TextureRectangle')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Iosurface')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TextureUsage')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TextureStorage')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'DiscardFramebuffer')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SyncQuery')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Image')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'FutureSyncPoints')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'BlendEquationAdvanced')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'BlendEquationAdvancedCoherent')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+ ];
+}
+
+
+
+
+
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new HashMap<String, mojom_types.UserDefinedType>();
+map["_gpu_capabilities_GpuShaderPrecision__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _gpu_capabilities_GpuShaderPrecision__();
+map["_gpu_capabilities_GpuPerStagePrecisions__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _gpu_capabilities_GpuPerStagePrecisions__();
+map["_gpu_capabilities_GpuCapabilities__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _gpu_capabilities_GpuCapabilities__();
+
+ 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