gpu_crash_keys.cc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // 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. #include "gpu/config/gpu_crash_keys.h"
  5. #include "build/build_config.h"
  6. namespace gpu {
  7. namespace crash_keys {
  8. #if !BUILDFLAG(IS_ANDROID)
  9. crash_reporter::CrashKeyString<16> gpu_vendor_id("gpu-venid");
  10. crash_reporter::CrashKeyString<16> gpu_device_id("gpu-devid");
  11. #endif // !BUILDFLAG(IS_ANDROID)
  12. #if BUILDFLAG(IS_WIN)
  13. crash_reporter::CrashKeyString<16> gpu_sub_sys_id("gpu-subid");
  14. crash_reporter::CrashKeyString<16> gpu_revision("gpu-rev");
  15. #endif // BUILDFLAG(IS_WIN)
  16. crash_reporter::CrashKeyString<64> gpu_driver_version("gpu-driver");
  17. crash_reporter::CrashKeyString<16> gpu_pixel_shader_version("gpu-psver");
  18. crash_reporter::CrashKeyString<16> gpu_vertex_shader_version("gpu-vsver");
  19. crash_reporter::CrashKeyString<16> gpu_generation_intel("gpu-generation-intel");
  20. #if BUILDFLAG(IS_MAC)
  21. crash_reporter::CrashKeyString<64> gpu_gl_version("gpu-glver");
  22. #elif BUILDFLAG(IS_POSIX)
  23. crash_reporter::CrashKeyString<256> gpu_vendor("gpu-gl-vendor");
  24. crash_reporter::CrashKeyString<128> gpu_renderer("gpu-gl-renderer");
  25. #endif
  26. crash_reporter::CrashKeyString<4> gpu_gl_context_is_virtual(
  27. "gpu-gl-context-is-virtual");
  28. crash_reporter::CrashKeyString<20> available_physical_memory_in_mb(
  29. "available-physical-memory-in-mb");
  30. crash_reporter::CrashKeyString<1024> current_shader_0("current-shader-0");
  31. crash_reporter::CrashKeyString<1024> current_shader_1("current-shader-1");
  32. crash_reporter::CrashKeyString<1024> gpu_gl_error_message(
  33. "gpu-gl-error-message");
  34. crash_reporter::CrashKeyString<4> gpu_watchdog_kill_after_power_resume(
  35. "gpu-watchdog-kill-after-power-resume");
  36. crash_reporter::CrashKeyString<4> gpu_watchdog_crashed_in_gpu_init(
  37. "gpu-watchdog-crashed-in-gpu-init");
  38. crash_reporter::CrashKeyString<16> num_of_processors("num-of-processors");
  39. crash_reporter::CrashKeyString<64> gpu_thread("gpu-thread");
  40. crash_reporter::CrashKeyString<128> list_of_hung_threads(
  41. "list-of-hung-threads");
  42. } // namespace crash_keys
  43. } // namespace gpu