Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: gpu/command_buffer/common/scheduling_priority.h

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: fix test dcheck failures Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/common/BUILD.gn ('k') | gpu/command_buffer/common/scheduling_priority.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/BUILD.gn ('k') | gpu/command_buffer/common/scheduling_priority.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698