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

Unified Diff: cc/raster/task_types.h

Issue 1890903002: cc: Simplify Task and its derived classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_tile_task_runner
Patch Set: nits Created 4 years, 8 months 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_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_

Powered by Google App Engine
This is Rietveld 408576698