OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "gpu/command_buffer/common/gpu_stream_constants.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace gpu { |
| 10 |
| 11 const char* GpuStreamPriorityToString(GpuStreamPriority priority) { |
| 12 switch (priority) { |
| 13 case GpuStreamPriority::REAL_TIME: |
| 14 return "REAL_TIME"; |
| 15 case GpuStreamPriority::HIGH: |
| 16 return "HIGH"; |
| 17 case GpuStreamPriority::NORMAL: |
| 18 return "NORMAL"; |
| 19 case GpuStreamPriority::LOW: |
| 20 return "LOW"; |
| 21 } |
| 22 NOTREACHED(); |
| 23 return ""; |
| 24 } |
| 25 |
| 26 } // namespace gpu |
OLD | NEW |