Index: cc/raster/task_types.h |
diff --git a/cc/raster/task_types.h b/cc/raster/task_types.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..027f82d3abe91ddccf8152c937173392cdeda123 |
--- /dev/null |
+++ b/cc/raster/task_types.h |
@@ -0,0 +1,25 @@ |
+// Copyright 2016 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_TYPES_H_ |
+#define CC_RASTER_TASK_TYPES_H_ |
+ |
+#include <stdint.h> |
+ |
+namespace cc { |
+ |
+// Task requiring specific handling (e.g. processing completed task in |
+// different manner) needs to be declared here. With TaskType they can be |
+// differenciated. Task not specifying the TaskType gets created with |
+// TASK_TYPE_DEFAULT. |
+enum TaskType : uint32_t { |
+ TASK_TYPE_DEFAULT, |
+ TASK_TYPE_RASTER, |
+ TASK_TYPE_IMAGE_DECODE, |
+ TASK_TYPE_IMAGE_UPLOAD |
+}; |
reveman
2016/04/16 10:10:28
can we move this into tile_manager.cc or tile_mana
|
+ |
+} // namespace cc |
+ |
+#endif // CC_RASTER_TASK_TYPES_H_ |