OLD | NEW |
| (Empty) |
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 | |
5 #ifndef GPU_COMMAND_BUFFER_COMMON_SCHEDULING_PRIORITY_H_ | |
6 #define GPU_COMMAND_BUFFER_COMMON_SCHEDULING_PRIORITY_H_ | |
7 | |
8 #include "gpu/gpu_export.h" | |
9 | |
10 namespace gpu { | |
11 | |
12 enum class SchedulingPriority { | |
13 // The Highest and High priorities can be used by priveleged clients only. | |
14 // This priority should be used for UI contexts. | |
15 kHighest, | |
16 // This priority is used by the scheduler for prioritizing contexts which have | |
17 // outstanding sync token waits. | |
18 kHigh, | |
19 // The following priorities can be used on unprivileged clients. | |
20 // This priority should be used as the default priority for all contexts. | |
21 kNormal, | |
22 kLow, | |
23 // This priority should be used for worker contexts. | |
24 kLowest, | |
25 kLast = kLowest | |
26 }; | |
27 | |
28 GPU_EXPORT const char* SchedulingPriorityToString(SchedulingPriority priority); | |
29 | |
30 } // namespace gpu | |
31 | |
32 #endif // GPU_COMMAND_BUFFER_COMMON_SCHEDULING_PRIORITY_H_ | |
OLD | NEW |