blob: c007a6e837d1673107e72c1c1137c4ac92b49ed6 [file] [log] [blame]
// gpu/ipc/common/device_perf_info.mojom-lite.js is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* @suppress {missingRequire}
*/
'use strict';
mojo.internal.exportModule('gpu.mojom');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
gpu.mojom.Direct3DFeatureLevelSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
gpu.mojom.Direct3DFeatureLevel = {
k1_0_Generic: 0,
k1_0_Core: 1,
k9_1: 2,
k9_2: 3,
k9_3: 4,
k10_0: 5,
k10_1: 6,
k11_0: 7,
k11_1: 8,
k12_0: 9,
k12_1: 10,
k12_2: 11,
MIN_VALUE: 0,
MAX_VALUE: 11,
};
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
gpu.mojom.HasDiscreteGpuSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
gpu.mojom.HasDiscreteGpu = {
kUnknown: 0,
kNo: 1,
kYes: 2,
MIN_VALUE: 0,
MAX_VALUE: 2,
};
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.DevicePerfInfoSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
mojo.internal.Struct(
gpu.mojom.DevicePerfInfoSpec.$,
'DevicePerfInfo',
[
mojo.internal.StructField(
'totalPhysicalMemoryMb', 0,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'totalDiskSpaceMb', 4,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'hardwareConcurrency', 8,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
/** @record */
gpu.mojom.DevicePerfInfo = class {
constructor() {
/** @export { !number } */
this.totalPhysicalMemoryMb;
/** @export { !number } */
this.totalDiskSpaceMb;
/** @export { !number } */
this.hardwareConcurrency;
}
};