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