| 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 { GPU_STREAM_DEFAULT = -1, GPU_STREAM_INVALID = 0 }; |
| 13 | 16 |
| 17 GPU_EXPORT const char* GpuStreamPriorityToString(GpuStreamPriority priority); |
| 18 |
| 14 } // namespace gpu | 19 } // namespace gpu |
| 15 | 20 |
| 16 #endif // GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_ | 21 #endif // GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_ |
| OLD | NEW |