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

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

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/scheduling_priority.h ('k') | gpu/command_buffer/service/BUILD.gn » ('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 #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
« no previous file with comments | « gpu/command_buffer/common/scheduling_priority.h ('k') | gpu/command_buffer/service/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698