| // gpu/ipc/common/memory_stats.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.VideoMemoryProcessStatsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| gpu.mojom.VideoMemoryUsageStatsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| gpu.mojom.VideoMemoryProcessStatsSpec.$, |
| 'VideoMemoryProcessStats', |
| [ |
| mojo.internal.StructField( |
| 'videoMemoryBytes', 0, |
| 0, |
| mojo.internal.Uint64, |
| BigInt(0), |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'hasDuplicates', 8, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 24],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| gpu.mojom.VideoMemoryProcessStats = class { |
| constructor() { |
| /** @export { !bigint } */ |
| this.videoMemoryBytes; |
| /** @export { !boolean } */ |
| this.hasDuplicates; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| gpu.mojom.VideoMemoryUsageStatsSpec.$, |
| 'VideoMemoryUsageStats', |
| [ |
| mojo.internal.StructField( |
| 'processMap', 0, |
| 0, |
| mojo.internal.Map(mojo.internal.Int32, gpu.mojom.VideoMemoryProcessStatsSpec.$, false), |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'bytesAllocated', 8, |
| 0, |
| mojo.internal.Uint64, |
| BigInt(0), |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 24],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| gpu.mojom.VideoMemoryUsageStats = class { |
| constructor() { |
| /** @export { !Object<!number, !gpu.mojom.VideoMemoryProcessStats> } */ |
| this.processMap; |
| /** @export { !bigint } */ |
| this.bytesAllocated; |
| } |
| }; |
| |