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

Unified Diff: gpu/command_buffer/common/gpu_stream_constants.cc

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: rebase Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/common/gpu_stream_constants.cc
diff --git a/gpu/command_buffer/common/gpu_stream_constants.cc b/gpu/command_buffer/common/gpu_stream_constants.cc
new file mode 100644
index 0000000000000000000000000000000000000000..bc878f442522e8a965f4744208d7e02e57b50763
--- /dev/null
+++ b/gpu/command_buffer/common/gpu_stream_constants.cc
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "gpu/command_buffer/common/gpu_stream_constants.h"
+
+#include "base/logging.h"
+
+namespace gpu {
+
+const char* GpuStreamPriorityToString(GpuStreamPriority priority) {
+ switch (priority) {
+ case GpuStreamPriority::REAL_TIME:
+ return "REAL_TIME";
+ case GpuStreamPriority::HIGH:
+ return "HIGH";
+ case GpuStreamPriority::NORMAL:
+ return "NORMAL";
+ case GpuStreamPriority::LOW:
+ return "LOW";
+ }
+ NOTREACHED();
+ return "";
+}
+
+} // namespace gpu

Powered by Google App Engine
This is Rietveld 408576698