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

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

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.h
diff --git a/gpu/ipc/common/gpu_stream_constants.h b/gpu/command_buffer/common/gpu_stream_constants.h
similarity index 51%
rename from gpu/ipc/common/gpu_stream_constants.h
rename to gpu/command_buffer/common/gpu_stream_constants.h
index abab39895328ca4a1b09e0726aed23fc02e913d4..7e6fe438dc86c489c3488df9098b59c6b15ede70 100644
--- a/gpu/ipc/common/gpu_stream_constants.h
+++ b/gpu/command_buffer/common/gpu_stream_constants.h
@@ -5,11 +5,20 @@
#ifndef GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_
#define GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_
+#include "gpu/gpu_export.h"
+
namespace gpu {
-enum class GpuStreamPriority { REAL_TIME, HIGH, NORMAL, LOW, LAST = LOW };
+enum class GpuStreamPriority : int { REAL_TIME, HIGH, NORMAL, LOW, LAST = LOW };
+static const int kNumGpuStreamPriorities = 4;
+
+enum GpuStreamId {
+ GPU_STREAM_INVALID = -1,
+ GPU_STREAM_DEFAULT = 0,
+ GPU_STREAM_WORKER = 1,
piman 2017/05/09 00:48:38 I'm not excited about defining here a notion that
sunnyps 2017/05/10 23:15:15 The service side implementation of stream lifetime
+};
-enum GpuStreamId { GPU_STREAM_DEFAULT = -1, GPU_STREAM_INVALID = 0 };
+GPU_EXPORT const char* GpuStreamPriorityToString(GpuStreamPriority priority);
} // namespace gpu

Powered by Google App Engine
This is Rietveld 408576698