Index: cc/raster/task_category.h |
diff --git a/cc/raster/task_category.h b/cc/raster/task_category.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1a7667490aef86cea8f10228c696afa0bb1e544d |
--- /dev/null |
+++ b/cc/raster/task_category.h |
@@ -0,0 +1,24 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CC_RASTER_TASK_CATEGORY_H_ |
+#define CC_RASTER_TASK_CATEGORY_H_ |
+ |
+#include <cstdint> |
+ |
+namespace cc { |
+ |
+// A set of values used by CC and its consumers to categorize tasks within the |
+// TaskGraphRunner. |
+enum TASK_CATEGORY : uint16_t { |
+ TASK_CATEGORY_SYNCHRONOUS_HIGH_PRIORITY = 0, |
+ TASK_CATEGORY_HIGH_PRIORITY = 1, |
+ TASK_CATEGORY_LOW_PRIORITY = 2, |
+}; |
reveman
2015/12/10 16:49:57
This look good but I'd rather not have any task gr
|
+ |
+enum : uint16_t { kNumTaskCategories = TASK_CATEGORY_LOW_PRIORITY + 1 }; |
+ |
+} // namespace cc |
+ |
+#endif // CC_RASTER_TASK_CATEGORY_H_ |