blob: f5e134110e60b0782e8b9bad2f9b4c8f2e15af4f [file] [log] [blame]
// gpu/ipc/common/gpu_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.SkiaBackendTypeSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
gpu.mojom.SkiaBackendType = {
kUnknown: 0,
kNone: 1,
kGaneshGL: 2,
kGaneshVulkan: 3,
kGraphiteDawnVulkan: 4,
kGraphiteDawnMetal: 5,
kGraphiteDawnD3D11: 6,
kGraphiteDawnD3D12: 7,
kGraphiteMetal: 8,
MIN_VALUE: 0,
MAX_VALUE: 8,
};
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
gpu.mojom.VideoCodecProfileSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
gpu.mojom.VideoCodecProfile = {
VIDEO_CODEC_PROFILE_UNKNOWN: -1,
H264PROFILE_BASELINE: 0,
H264PROFILE_MAIN: 1,
H264PROFILE_EXTENDED: 2,
H264PROFILE_HIGH: 3,
H264PROFILE_HIGH10PROFILE: 4,
H264PROFILE_HIGH422PROFILE: 5,
H264PROFILE_HIGH444PREDICTIVEPROFILE: 6,
H264PROFILE_SCALABLEBASELINE: 7,
H264PROFILE_SCALABLEHIGH: 8,
H264PROFILE_STEREOHIGH: 9,
H264PROFILE_MULTIVIEWHIGH: 10,
VP8PROFILE_ANY: 11,
VP9PROFILE_PROFILE0: 12,
VP9PROFILE_PROFILE1: 13,
VP9PROFILE_PROFILE2: 14,
VP9PROFILE_PROFILE3: 15,
HEVCPROFILE_MAIN: 16,
HEVCPROFILE_MAIN10: 17,
HEVCPROFILE_MAIN_STILL_PICTURE: 18,
DOLBYVISION_PROFILE0: 19,
DOLBYVISION_PROFILE5: 21,
DOLBYVISION_PROFILE7: 22,
THEORAPROFILE_ANY: 23,
AV1PROFILE_PROFILE_MAIN: 24,
AV1PROFILE_PROFILE_HIGH: 25,
AV1PROFILE_PROFILE_PRO: 26,
DOLBYVISION_PROFILE8: 27,
DOLBYVISION_PROFILE9: 28,
HEVCPROFILE_REXT: 29,
HEVCPROFILE_HIGH_THROUGHPUT: 30,
HEVCPROFILE_MULTIVIEW_MAIN: 31,
HEVCPROFILE_SCALABLE_MAIN: 32,
HEVCPROFILE_3D_MAIN: 33,
HEVCPROFILE_SCREEN_EXTENDED: 34,
HEVCPROFILE_SCALABLE_REXT: 35,
HEVCPROFILE_HIGH_THROUGHPUT_SCREEN_EXTENDED: 36,
VVCPROFILE_MAIN10: 37,
VVCPROFILE_MAIN12: 38,
VVCPROFILE_MAIN12_INTRA: 39,
VVCPROIFLE_MULTILAYER_MAIN10: 40,
VVCPROFILE_MAIN10_444: 41,
VVCPROFILE_MAIN12_444: 42,
VVCPROFILE_MAIN16_444: 43,
VVCPROFILE_MAIN12_444_INTRA: 44,
VVCPROFILE_MAIN16_444_INTRA: 45,
VVCPROFILE_MULTILAYER_MAIN10_444: 46,
VVCPROFILE_MAIN10_STILL_PICTURE: 47,
VVCPROFILE_MAIN12_STILL_PICTURE: 48,
VVCPROFILE_MAIN10_444_STILL_PICTURE: 49,
VVCPROFILE_MAIN12_444_STILL_PICTURE: 50,
VVCPROFILE_MAIN16_444_STILL_PICTURE: 51,
MIN_VALUE: -1,
MAX_VALUE: 51,
};
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
gpu.mojom.ImageDecodeAcceleratorTypeSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
gpu.mojom.ImageDecodeAcceleratorType = {
kJpeg: 0,
kWebP: 1,
kUnknown: 2,
MIN_VALUE: 0,
MAX_VALUE: 2,
};
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
gpu.mojom.ImageDecodeAcceleratorSubsamplingSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
gpu.mojom.ImageDecodeAcceleratorSubsampling = {
k420: 0,
k422: 1,
k444: 2,
MIN_VALUE: 0,
MAX_VALUE: 2,
};
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.GpuDeviceSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.VideoDecodeAcceleratorSupportedProfileSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.VideoDecodeAcceleratorCapabilitiesSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.VideoEncodeAcceleratorSupportedProfileSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.ImageDecodeAcceleratorSupportedProfileSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.GpuInfoSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
mojo.internal.Struct(
gpu.mojom.GpuDeviceSpec.$,
'GpuDevice',
[
mojo.internal.StructField(
'vendorId', 0,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'deviceId', 4,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'active', 8,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'vendorString', 16,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'deviceString', 24,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'driverVendor', 32,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'driverVersion', 40,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'gpuPreference', 12,
0,
gl.mojom.GpuPreferenceSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 56],]);
/** @record */
gpu.mojom.GpuDevice = class {
constructor() {
/** @export { !number } */
this.vendorId;
/** @export { !number } */
this.deviceId;
/** @export { !boolean } */
this.active;
/** @export { !string } */
this.vendorString;
/** @export { !string } */
this.deviceString;
/** @export { !string } */
this.driverVendor;
/** @export { !string } */
this.driverVersion;
/** @export { !gl.mojom.GpuPreference } */
this.gpuPreference;
}
};
mojo.internal.Struct(
gpu.mojom.VideoDecodeAcceleratorSupportedProfileSpec.$,
'VideoDecodeAcceleratorSupportedProfile',
[
mojo.internal.StructField(
'profile', 0,
0,
gpu.mojom.VideoCodecProfileSpec.$,
-1,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'maxResolution', 8,
0,
gfx.mojom.SizeSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'minResolution', 16,
0,
gfx.mojom.SizeSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'encryptedOnly', 4,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
/** @record */
gpu.mojom.VideoDecodeAcceleratorSupportedProfile = class {
constructor() {
/** @export { !gpu.mojom.VideoCodecProfile } */
this.profile;
/** @export { !gfx.mojom.Size } */
this.maxResolution;
/** @export { !gfx.mojom.Size } */
this.minResolution;
/** @export { !boolean } */
this.encryptedOnly;
}
};
mojo.internal.Struct(
gpu.mojom.VideoDecodeAcceleratorCapabilitiesSpec.$,
'VideoDecodeAcceleratorCapabilities',
[
mojo.internal.StructField(
'supportedProfiles', 0,
0,
mojo.internal.Array(gpu.mojom.VideoDecodeAcceleratorSupportedProfileSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'flags', 8,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
/** @record */
gpu.mojom.VideoDecodeAcceleratorCapabilities = class {
constructor() {
/** @export { !Array<!gpu.mojom.VideoDecodeAcceleratorSupportedProfile> } */
this.supportedProfiles;
/** @export { !number } */
this.flags;
}
};
mojo.internal.Struct(
gpu.mojom.VideoEncodeAcceleratorSupportedProfileSpec.$,
'VideoEncodeAcceleratorSupportedProfile',
[
mojo.internal.StructField(
'profile', 0,
0,
gpu.mojom.VideoCodecProfileSpec.$,
-1,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'minResolution', 8,
0,
gfx.mojom.SizeSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'maxResolution', 16,
0,
gfx.mojom.SizeSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'maxFramerateNumerator', 4,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'maxFramerateDenominator', 24,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 40],]);
/** @record */
gpu.mojom.VideoEncodeAcceleratorSupportedProfile = class {
constructor() {
/** @export { !gpu.mojom.VideoCodecProfile } */
this.profile;
/** @export { !gfx.mojom.Size } */
this.minResolution;
/** @export { !gfx.mojom.Size } */
this.maxResolution;
/** @export { !number } */
this.maxFramerateNumerator;
/** @export { !number } */
this.maxFramerateDenominator;
}
};
mojo.internal.Struct(
gpu.mojom.ImageDecodeAcceleratorSupportedProfileSpec.$,
'ImageDecodeAcceleratorSupportedProfile',
[
mojo.internal.StructField(
'imageType', 0,
0,
gpu.mojom.ImageDecodeAcceleratorTypeSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'minEncodedDimensions', 8,
0,
gfx.mojom.SizeSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'maxEncodedDimensions', 16,
0,
gfx.mojom.SizeSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'subsamplings', 24,
0,
mojo.internal.Array(gpu.mojom.ImageDecodeAcceleratorSubsamplingSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 40],]);
/** @record */
gpu.mojom.ImageDecodeAcceleratorSupportedProfile = class {
constructor() {
/** @export { !gpu.mojom.ImageDecodeAcceleratorType } */
this.imageType;
/** @export { !gfx.mojom.Size } */
this.minEncodedDimensions;
/** @export { !gfx.mojom.Size } */
this.maxEncodedDimensions;
/** @export { !Array<!gpu.mojom.ImageDecodeAcceleratorSubsampling> } */
this.subsamplings;
}
};
mojo.internal.Struct(
gpu.mojom.GpuInfoSpec.$,
'GpuInfo',
[
mojo.internal.StructField(
'initializationTime', 0,
0,
mojoBase.mojom.TimeDeltaSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'optimus', 8,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'amdSwitchable', 8,
1,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'gpu', 16,
0,
gpu.mojom.GpuDeviceSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'secondaryGpus', 24,
0,
mojo.internal.Array(gpu.mojom.GpuDeviceSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'npus', 32,
0,
mojo.internal.Array(gpu.mojom.GpuDeviceSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'pixelShaderVersion', 40,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'vertexShaderVersion', 48,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'maxMsaaSamples', 56,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'machineModelName', 64,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'machineModelVersion', 72,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'displayType', 80,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'skiaBackendType', 12,
0,
gpu.mojom.SkiaBackendTypeSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'glVersion', 88,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'glVendor', 96,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'glRenderer', 104,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'glExtensions', 112,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'glWsVendor', 120,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'glWsVersion', 128,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'glWsExtensions', 136,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'glResetNotificationStrategy', 144,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'glImplementationParts', 152,
0,
gl.mojom.GLImplementationPartsSpec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'directRenderingVersion', 160,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'sandboxed', 8,
2,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'inProcessGpu', 8,
3,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'passthroughCmdDecoder', 8,
4,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'canSupportThreadedTextureMailbox', 8,
5,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'videoDecodeAcceleratorSupportedProfiles', 168,
0,
mojo.internal.Array(gpu.mojom.VideoDecodeAcceleratorSupportedProfileSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'videoEncodeAcceleratorSupportedProfiles', 176,
0,
mojo.internal.Array(gpu.mojom.VideoEncodeAcceleratorSupportedProfileSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'jpegDecodeAcceleratorSupported', 8,
6,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'subpixelFontRendering', 8,
7,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'visibilityCallbackCallCount', 148,
0,
mojo.internal.Uint32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'hardwareSupportsVulkan', 9,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'vulkanInfo', 184,
0,
gpu.mojom.VulkanInfoSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
],
[[0, 200],]);
/** @record */
gpu.mojom.GpuInfo = class {
constructor() {
/** @export { !mojoBase.mojom.TimeDelta } */
this.initializationTime;
/** @export { !boolean } */
this.optimus;
/** @export { !boolean } */
this.amdSwitchable;
/** @export { !gpu.mojom.GpuDevice } */
this.gpu;
/** @export { !Array<!gpu.mojom.GpuDevice> } */
this.secondaryGpus;
/** @export { !Array<!gpu.mojom.GpuDevice> } */
this.npus;
/** @export { !string } */
this.pixelShaderVersion;
/** @export { !string } */
this.vertexShaderVersion;
/** @export { !string } */
this.maxMsaaSamples;
/** @export { !string } */
this.machineModelName;
/** @export { !string } */
this.machineModelVersion;
/** @export { !string } */
this.displayType;
/** @export { !gpu.mojom.SkiaBackendType } */
this.skiaBackendType;
/** @export { !string } */
this.glVersion;
/** @export { !string } */
this.glVendor;
/** @export { !string } */
this.glRenderer;
/** @export { !string } */
this.glExtensions;
/** @export { !string } */
this.glWsVendor;
/** @export { !string } */
this.glWsVersion;
/** @export { !string } */
this.glWsExtensions;
/** @export { !number } */
this.glResetNotificationStrategy;
/** @export { !gl.mojom.GLImplementationParts } */
this.glImplementationParts;
/** @export { !string } */
this.directRenderingVersion;
/** @export { !boolean } */
this.sandboxed;
/** @export { !boolean } */
this.inProcessGpu;
/** @export { !boolean } */
this.passthroughCmdDecoder;
/** @export { !boolean } */
this.canSupportThreadedTextureMailbox;
/** @export { !Array<!gpu.mojom.VideoDecodeAcceleratorSupportedProfile> } */
this.videoDecodeAcceleratorSupportedProfiles;
/** @export { !Array<!gpu.mojom.VideoEncodeAcceleratorSupportedProfile> } */
this.videoEncodeAcceleratorSupportedProfiles;
/** @export { !boolean } */
this.jpegDecodeAcceleratorSupported;
/** @export { !boolean } */
this.subpixelFontRendering;
/** @export { !number } */
this.visibilityCallbackCallCount;
/** @export { !boolean } */
this.hardwareSupportsVulkan;
/** @export { (gpu.mojom.VulkanInfo|undefined) } */
this.vulkanInfo;
}
};