| // gpu/ipc/common/gpu_feature_info.mojom-lite.js is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| 'use strict'; |
| |
| |
| mojo.internal.exportModule('gpu.mojom'); |
| |
| |
| |
| |
| |
| /** |
| * @const { {$: !mojo.internal.MojomType} } |
| * @export |
| */ |
| gpu.mojom.GpuFeatureStatusSpec = { $: mojo.internal.Enum() }; |
| |
| /** |
| * @enum {number} |
| * @export |
| */ |
| gpu.mojom.GpuFeatureStatus = { |
| |
| Enabled: 0, |
| Blocklisted: 1, |
| Disabled: 2, |
| Software: 3, |
| Undefined: 4, |
| Max: 5, |
| MIN_VALUE: 0, |
| MAX_VALUE: 5, |
| }; |
| |
| |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| gpu.mojom.GpuFeatureInfoSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| gpu.mojom.GpuFeatureInfoSpec.$, |
| 'GpuFeatureInfo', |
| [ |
| mojo.internal.StructField( |
| 'statusValues', 0, |
| 0, |
| mojo.internal.Array(gpu.mojom.GpuFeatureStatusSpec.$, false), |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'enabledGpuDriverBugWorkarounds', 8, |
| 0, |
| mojo.internal.Array(mojo.internal.Int32, false), |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'disabledExtensions', 16, |
| 0, |
| mojo.internal.String, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'disabledWebglExtensions', 24, |
| 0, |
| mojo.internal.String, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'appliedGpuBlocklistEntries', 32, |
| 0, |
| mojo.internal.Array(mojo.internal.Uint32, false), |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'appliedGpuDriverBugListEntries', 40, |
| 0, |
| mojo.internal.Array(mojo.internal.Uint32, false), |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'supportedBufferFormatsForAllocationAndTexturing', 48, |
| 0, |
| mojo.internal.Array(gfx.mojom.BufferFormatSpec.$, false), |
| null, |
| false /* nullable */), |
| ], |
| [[0, 64],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| gpu.mojom.GpuFeatureInfo = class { |
| constructor() { |
| /** @export { !Array<!gpu.mojom.GpuFeatureStatus> } */ |
| this.statusValues; |
| /** @export { !Array<!number> } */ |
| this.enabledGpuDriverBugWorkarounds; |
| /** @export { !string } */ |
| this.disabledExtensions; |
| /** @export { !string } */ |
| this.disabledWebglExtensions; |
| /** @export { !Array<!number> } */ |
| this.appliedGpuBlocklistEntries; |
| /** @export { !Array<!number> } */ |
| this.appliedGpuDriverBugListEntries; |
| /** @export { !Array<!gfx.mojom.BufferFormat> } */ |
| this.supportedBufferFormatsForAllocationAndTexturing; |
| } |
| }; |
| |
| |