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