OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 library gpu_capabilities_mojom; | 5 library gpu_capabilities_mojom; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
| 11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
11 | 12 |
12 | 13 |
13 | 14 |
| 15 |
14 class GpuShaderPrecision extends bindings.Struct { | 16 class GpuShaderPrecision extends bindings.Struct { |
15 static const List<bindings.StructDataHeader> kVersions = const [ | 17 static const List<bindings.StructDataHeader> kVersions = const [ |
16 const bindings.StructDataHeader(24, 0) | 18 const bindings.StructDataHeader(24, 0) |
17 ]; | 19 ]; |
18 int minRange = 0; | 20 int minRange = 0; |
19 int maxRange = 0; | 21 int maxRange = 0; |
20 int precision = 0; | 22 int precision = 0; |
21 | 23 |
22 GpuShaderPrecision() : super(kVersions.last.size); | 24 GpuShaderPrecision() : super(kVersions.last.size); |
23 | 25 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 Map toJson() { | 91 Map toJson() { |
90 Map map = new Map(); | 92 Map map = new Map(); |
91 map["minRange"] = minRange; | 93 map["minRange"] = minRange; |
92 map["maxRange"] = maxRange; | 94 map["maxRange"] = maxRange; |
93 map["precision"] = precision; | 95 map["precision"] = precision; |
94 return map; | 96 return map; |
95 } | 97 } |
96 } | 98 } |
97 | 99 |
98 | 100 |
| 101 |
| 102 |
99 class GpuPerStagePrecisions extends bindings.Struct { | 103 class GpuPerStagePrecisions extends bindings.Struct { |
100 static const List<bindings.StructDataHeader> kVersions = const [ | 104 static const List<bindings.StructDataHeader> kVersions = const [ |
101 const bindings.StructDataHeader(56, 0) | 105 const bindings.StructDataHeader(56, 0) |
102 ]; | 106 ]; |
103 GpuShaderPrecision lowInt = null; | 107 GpuShaderPrecision lowInt = null; |
104 GpuShaderPrecision mediumInt = null; | 108 GpuShaderPrecision mediumInt = null; |
105 GpuShaderPrecision highInt = null; | 109 GpuShaderPrecision highInt = null; |
106 GpuShaderPrecision lowFloat = null; | 110 GpuShaderPrecision lowFloat = null; |
107 GpuShaderPrecision mediumFloat = null; | 111 GpuShaderPrecision mediumFloat = null; |
108 GpuShaderPrecision highFloat = null; | 112 GpuShaderPrecision highFloat = null; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 map["mediumInt"] = mediumInt; | 211 map["mediumInt"] = mediumInt; |
208 map["highInt"] = highInt; | 212 map["highInt"] = highInt; |
209 map["lowFloat"] = lowFloat; | 213 map["lowFloat"] = lowFloat; |
210 map["mediumFloat"] = mediumFloat; | 214 map["mediumFloat"] = mediumFloat; |
211 map["highFloat"] = highFloat; | 215 map["highFloat"] = highFloat; |
212 return map; | 216 return map; |
213 } | 217 } |
214 } | 218 } |
215 | 219 |
216 | 220 |
| 221 |
| 222 |
217 class GpuCapabilities extends bindings.Struct { | 223 class GpuCapabilities extends bindings.Struct { |
218 static const List<bindings.StructDataHeader> kVersions = const [ | 224 static const List<bindings.StructDataHeader> kVersions = const [ |
219 const bindings.StructDataHeader(80, 0) | 225 const bindings.StructDataHeader(80, 0) |
220 ]; | 226 ]; |
221 GpuPerStagePrecisions vertexShaderPrecisions = null; | 227 GpuPerStagePrecisions vertexShaderPrecisions = null; |
222 GpuPerStagePrecisions fragmentShaderPrecisions = null; | 228 GpuPerStagePrecisions fragmentShaderPrecisions = null; |
223 int maxCombinedTextureImageUnits = 0; | 229 int maxCombinedTextureImageUnits = 0; |
224 int maxCubeMapTextureSize = 0; | 230 int maxCubeMapTextureSize = 0; |
225 int maxFragmentUniformVectors = 0; | 231 int maxFragmentUniformVectors = 0; |
226 int maxRenderbufferSize = 0; | 232 int maxRenderbufferSize = 0; |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 map["syncQuery"] = syncQuery; | 543 map["syncQuery"] = syncQuery; |
538 map["image"] = image; | 544 map["image"] = image; |
539 map["futureSyncPoints"] = futureSyncPoints; | 545 map["futureSyncPoints"] = futureSyncPoints; |
540 map["blendEquationAdvanced"] = blendEquationAdvanced; | 546 map["blendEquationAdvanced"] = blendEquationAdvanced; |
541 map["blendEquationAdvancedCoherent"] = blendEquationAdvancedCoherent; | 547 map["blendEquationAdvancedCoherent"] = blendEquationAdvancedCoherent; |
542 return map; | 548 return map; |
543 } | 549 } |
544 } | 550 } |
545 | 551 |
546 | 552 |
| 553 |
| 554 |
| 555 |
| 556 |
OLD | NEW |