OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_ | 5 #ifndef GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_ |
6 #define GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_ | 6 #define GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_ |
7 | 7 |
8 #include "gpu/gpu_export.h" | |
9 | |
8 namespace gpu { | 10 namespace gpu { |
9 | 11 |
10 enum class GpuStreamPriority { REAL_TIME, HIGH, NORMAL, LOW, LAST = LOW }; | 12 enum class GpuStreamPriority : int { REAL_TIME, HIGH, NORMAL, LOW, LAST = LOW }; |
13 static const int kNumGpuStreamPriorities = 4; | |
11 | 14 |
12 enum GpuStreamId { GPU_STREAM_DEFAULT = -1, GPU_STREAM_INVALID = 0 }; | 15 enum GpuStreamId { |
16 GPU_STREAM_INVALID = -1, | |
17 GPU_STREAM_DEFAULT = 0, | |
18 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
| |
19 }; | |
20 | |
21 GPU_EXPORT const char* GpuStreamPriorityToString(GpuStreamPriority priority); | |
13 | 22 |
14 } // namespace gpu | 23 } // namespace gpu |
15 | 24 |
16 #endif // GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_ | 25 #endif // GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_ |
OLD | NEW |