| // gpu/ipc/common/device_perf_info.mojom.m.js is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2020 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. |
| |
| import {mojo} from '../../../mojo/public/js/bindings.js'; |
| |
| |
| /** |
| * @const { {$: !mojo.internal.MojomType} } |
| */ |
| export const Direct3DFeatureLevelSpec = { $: mojo.internal.Enum() }; |
| |
| /** |
| * @enum {number} |
| */ |
| export const Direct3DFeatureLevel = { |
| |
| k1_0_Core: 0, |
| k9_1: 1, |
| k9_2: 2, |
| k9_3: 3, |
| k10_0: 4, |
| k10_1: 5, |
| k11_0: 6, |
| k11_1: 7, |
| k12_0: 8, |
| k12_1: 9, |
| k12_2: 10, |
| MIN_VALUE: 0, |
| MAX_VALUE: 10, |
| }; |
| |
| /** |
| * @const { {$: !mojo.internal.MojomType} } |
| */ |
| export const HasDiscreteGpuSpec = { $: mojo.internal.Enum() }; |
| |
| /** |
| * @enum {number} |
| */ |
| export const HasDiscreteGpu = { |
| |
| kUnknown: 0, |
| kNo: 1, |
| kYes: 2, |
| MIN_VALUE: 0, |
| MAX_VALUE: 2, |
| }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| */ |
| export const DevicePerfInfoSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| DevicePerfInfoSpec.$, |
| 'DevicePerfInfo', |
| [ |
| mojo.internal.StructField( |
| 'totalPhysicalMemoryMb', 0, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */, |
| 0), |
| mojo.internal.StructField( |
| 'totalDiskSpaceMb', 4, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */, |
| 0), |
| mojo.internal.StructField( |
| 'hardwareConcurrency', 8, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */, |
| 0), |
| ], |
| [[0, 24],]); |
| |
| |
| |
| /** |
| * @record |
| */ |
| export class DevicePerfInfo { |
| constructor() { |
| /** @type { !number } */ |
| this.totalPhysicalMemoryMb; |
| /** @type { !number } */ |
| this.totalDiskSpaceMb; |
| /** @type { !number } */ |
| this.hardwareConcurrency; |
| } |
| } |
| |