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

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

Issue 2440093003: WIP GPU scheduler + delayed activation / tile draw
Patch Set: SignalSyncToken -> IsFenceSyncReleased Created 4 years 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
« no previous file with comments | « gpu/ipc/common/gpu_stream_constants.h ('k') | gpu/ipc/in_process_command_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/gpu_stream_constants.cc
diff --git a/gpu/ipc/common/gpu_stream_constants.cc b/gpu/ipc/common/gpu_stream_constants.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9fcf8317086d414413aeb1d3f2900087ddb88178
--- /dev/null
+++ b/gpu/ipc/common/gpu_stream_constants.cc
@@ -0,0 +1,26 @@
+// Copyright 2016 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/ipc/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
« no previous file with comments | « gpu/ipc/common/gpu_stream_constants.h ('k') | gpu/ipc/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698