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

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

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/BUILD.gn ('k') | gpu/ipc/common/gpu_stream_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/gpu_stream_constants.h
diff --git a/gpu/ipc/common/gpu_stream_constants.h b/gpu/ipc/common/gpu_stream_constants.h
index abab39895328ca4a1b09e0726aed23fc02e913d4..bb3ec5b3429eb8ef992aced03632d8b4f738e9b7 100644
--- a/gpu/ipc/common/gpu_stream_constants.h
+++ b/gpu/ipc/common/gpu_stream_constants.h
@@ -5,12 +5,17 @@
#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_DEFAULT = -1, GPU_STREAM_INVALID = 0 };
+GPU_EXPORT const char* GpuStreamPriorityToString(GpuStreamPriority priority);
+
} // namespace gpu
#endif // GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_
« no previous file with comments | « gpu/ipc/common/BUILD.gn ('k') | gpu/ipc/common/gpu_stream_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698