Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2797)

Unified Diff: cc/raster/task_category.h

Issue 1489233003: TaskGraphRunner Group support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor
Patch Set: feedback Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698