blob: 00b84c58d38d240f6a0b0656c7f9baf7eebf42f1 [file] [log] [blame]
sadrulc05f3472017-03-23 20:30:051// Copyright 2017 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "gpu/config/gpu_crash_keys.h"
6
7namespace gpu {
8namespace crash_keys {
Sunny Sachanandaniac4fed42017-06-28 01:44:559
sadrulc05f3472017-03-23 20:30:0510#if !defined(OS_ANDROID)
Robert Sesekd7329222017-12-08 15:31:0811crash_reporter::CrashKeyString<16> gpu_vendor_id("gpu-venid");
12crash_reporter::CrashKeyString<16> gpu_device_id("gpu-devid");
Zhenyao Mo2df35832019-09-26 22:52:2913#endif // !OS_ANDROID
14#if defined(OS_WIN)
15crash_reporter::CrashKeyString<16> gpu_sub_sys_id("gpu-subid");
16crash_reporter::CrashKeyString<16> gpu_revision("gpu-rev");
17#endif // OS_WIN
Robert Sesekd7329222017-12-08 15:31:0818crash_reporter::CrashKeyString<64> gpu_driver_version("gpu-driver");
19crash_reporter::CrashKeyString<16> gpu_pixel_shader_version("gpu-psver");
20crash_reporter::CrashKeyString<16> gpu_vertex_shader_version("gpu-vsver");
sadrulc05f3472017-03-23 20:30:0521#if defined(OS_MACOSX)
Robert Sesekd7329222017-12-08 15:31:0822crash_reporter::CrashKeyString<64> gpu_gl_version("gpu-glver");
sadrulc05f3472017-03-23 20:30:0523#elif defined(OS_POSIX)
Robert Sesekd7329222017-12-08 15:31:0824crash_reporter::CrashKeyString<256> gpu_vendor("gpu-gl-vendor");
25crash_reporter::CrashKeyString<128> gpu_renderer("gpu-gl-renderer");
sadrulc05f3472017-03-23 20:30:0526#endif
Robert Sesekd7329222017-12-08 15:31:0827crash_reporter::CrashKeyString<4> gpu_gl_context_is_virtual(
28 "gpu-gl-context-is-virtual");
Zhenyao Moa8a44a02019-03-16 05:06:3429crash_reporter::CrashKeyString<20> available_physical_memory_in_mb(
30 "available-physical-memory-in-mb");
Zhenyao Mo3548bb32019-06-07 00:39:2531crash_reporter::CrashKeyString<1024> current_shader_0("current-shader-0");
32crash_reporter::CrashKeyString<1024> current_shader_1("current-shader-1");
Maggie Chenc8e3fb42019-08-09 01:11:5533crash_reporter::CrashKeyString<4> gpu_watchdog_kill_after_power_resume(
34 "gpu-watchdog-kill-after-power-resume");
Maggie Chen84b4b23a2019-10-23 20:23:1535crash_reporter::CrashKeyString<4> gpu_watchdog_crashed_in_gpu_init(
36 "gpu-watchdog-crashed-in-gpu-init");
Sunny Sachanandania2c68af2017-06-22 02:23:3537
sadrulc05f3472017-03-23 20:30:0538} // namespace crash_keys
39} // namespace gpu