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 #include "gpu/command_buffer/common/scheduling_priority.h" | |
6 | |
7 #include "base/logging.h" | |
8 | |
9 namespace gpu { | |
10 | |
11 const char* SchedulingPriorityToString(SchedulingPriority priority) { | |
12 switch (priority) { | |
13 case SchedulingPriority::kHighest: | |
14 return "Highest"; | |
15 case SchedulingPriority::kHigh: | |
16 return "High"; | |
17 case SchedulingPriority::kNormal: | |
18 return "Normal"; | |
19 case SchedulingPriority::kLow: | |
20 return "Low"; | |
21 case SchedulingPriority::kLowest: | |
22 return "Lowest"; | |
23 } | |
24 NOTREACHED(); | |
25 return ""; | |
26 } | |
27 | |
28 } // namespace gpu | |
OLD | NEW |