OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_RASTER_TASK_CATEGORY_H_ | |
6 #define CC_RASTER_TASK_CATEGORY_H_ | |
7 | |
8 #include <cstdint> | |
9 | |
10 namespace cc { | |
11 | |
12 // A set of values used by CC and its consumers to categorize tasks within the | |
13 // TaskGraphRunner. | |
14 enum TASK_CATEGORY : uint16_t { | |
15 TASK_CATEGORY_SYNCHRONOUS_HIGH_PRIORITY = 0, | |
16 TASK_CATEGORY_HIGH_PRIORITY = 1, | |
17 TASK_CATEGORY_LOW_PRIORITY = 2, | |
18 }; | |
reveman
2015/12/10 16:49:57
This look good but I'd rather not have any task gr
| |
19 | |
20 enum : uint16_t { kNumTaskCategories = TASK_CATEGORY_LOW_PRIORITY + 1 }; | |
21 | |
22 } // namespace cc | |
23 | |
24 #endif // CC_RASTER_TASK_CATEGORY_H_ | |
OLD | NEW |