gpu_mode.h 817 B

123456789101112131415161718192021222324252627
  1. // Copyright 2018 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_MODE_H_
  5. #define GPU_CONFIG_GPU_MODE_H_
  6. namespace gpu {
  7. // What the GPU process is running for.
  8. enum class GpuMode {
  9. UNKNOWN,
  10. // The GPU process is running with hardware acceleration, using only GL.
  11. HARDWARE_GL,
  12. // The GPU process is running with hardware acceleration, using Metal and GL.
  13. HARDWARE_METAL,
  14. // The GPU process is running with hardware acceleration, using Vulkan and GL.
  15. HARDWARE_VULKAN,
  16. // The GPU process is running for SwiftShader WebGL.
  17. SWIFTSHADER,
  18. // The GPU process is running for the display compositor.
  19. DISPLAY_COMPOSITOR,
  20. };
  21. } // namespace gpu
  22. #endif // GPU_CONFIG_GPU_MODE_H_