Chromium Code Reviews

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: enum -> enum class Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 #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
OLDNEW

Powered by Google App Engine