forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpu_mode.h
30 lines (25 loc) · 970 Bytes
/
gpu_mode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GPU_CONFIG_GPU_MODE_H_
#define GPU_CONFIG_GPU_MODE_H_
namespace gpu {
// What the GPU process is running for.
enum class GpuMode {
UNKNOWN,
// The GPU process is running with hardware acceleration, using only GL.
HARDWARE_GL,
// The GPU process is running with hardware acceleration, using Metal and GL.
HARDWARE_METAL,
// The GPU process is running with hardware acceleration, using Vulkan and GL.
HARDWARE_VULKAN,
// The GPU process is running for SwiftShader WebGL.
SWIFTSHADER,
// The GPU process is running for the display compositor.
DISPLAY_COMPOSITOR,
// The GPU process is disabled and won't start. This is only used on Windows
// when GPU acceleration and SwiftShader are both disabled.
DISABLED,
};
} // namespace gpu
#endif // GPU_CONFIG_GPU_MODE_H_