gpu_crash_keys.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #ifndef GPU_CONFIG_GPU_CRASH_KEYS_H_
  5. #define GPU_CONFIG_GPU_CRASH_KEYS_H_
  6. #include "build/build_config.h"
  7. #include "components/crash/core/common/crash_key.h"
  8. #include "gpu/gpu_export.h"
  9. namespace gpu {
  10. namespace crash_keys {
  11. // Keys that can be used for crash reporting.
  12. #if !BUILDFLAG(IS_ANDROID)
  13. extern GPU_EXPORT crash_reporter::CrashKeyString<16> gpu_vendor_id;
  14. extern GPU_EXPORT crash_reporter::CrashKeyString<16> gpu_device_id;
  15. #endif // !BUILDFLAG(IS_ANDROID)
  16. #if BUILDFLAG(IS_WIN)
  17. extern GPU_EXPORT crash_reporter::CrashKeyString<16> gpu_sub_sys_id;
  18. extern GPU_EXPORT crash_reporter::CrashKeyString<16> gpu_revision;
  19. #endif // BUILDFLAG(IS_WIN)
  20. extern GPU_EXPORT crash_reporter::CrashKeyString<64> gpu_driver_version;
  21. extern GPU_EXPORT crash_reporter::CrashKeyString<16> gpu_pixel_shader_version;
  22. extern GPU_EXPORT crash_reporter::CrashKeyString<16> gpu_vertex_shader_version;
  23. extern GPU_EXPORT crash_reporter::CrashKeyString<16> gpu_generation_intel;
  24. #if BUILDFLAG(IS_MAC)
  25. extern GPU_EXPORT crash_reporter::CrashKeyString<64> gpu_gl_version;
  26. #elif BUILDFLAG(IS_POSIX)
  27. extern GPU_EXPORT crash_reporter::CrashKeyString<256> gpu_vendor;
  28. extern GPU_EXPORT crash_reporter::CrashKeyString<128> gpu_renderer;
  29. #endif
  30. extern GPU_EXPORT crash_reporter::CrashKeyString<4> gpu_gl_context_is_virtual;
  31. extern GPU_EXPORT crash_reporter::CrashKeyString<20>
  32. available_physical_memory_in_mb;
  33. extern GPU_EXPORT crash_reporter::CrashKeyString<1024> current_shader_0;
  34. extern GPU_EXPORT crash_reporter::CrashKeyString<1024> current_shader_1;
  35. extern GPU_EXPORT crash_reporter::CrashKeyString<1024> gpu_gl_error_message;
  36. extern GPU_EXPORT crash_reporter::CrashKeyString<4>
  37. gpu_watchdog_kill_after_power_resume;
  38. extern GPU_EXPORT crash_reporter::CrashKeyString<4>
  39. gpu_watchdog_crashed_in_gpu_init;
  40. extern GPU_EXPORT crash_reporter::CrashKeyString<16> num_of_processors;
  41. extern GPU_EXPORT crash_reporter::CrashKeyString<64> gpu_thread;
  42. extern GPU_EXPORT crash_reporter::CrashKeyString<128> list_of_hung_threads;
  43. } // namespace crash_keys
  44. } // namespace gpu
  45. #endif // GPU_CONFIG_GPU_CRASH_KEYS_H_