Chromium Code Reviews| Index: cc/raster/tile_task_runner.h |
| diff --git a/cc/raster/tile_task_runner.h b/cc/raster/tile_task_runner.h |
| index 5e2f7fd1c96e96b6a4806ebdaa95badc7861d146..80cb9e67928b4b3c6a1805fdef69e5994ac040dc 100644 |
| --- a/cc/raster/tile_task_runner.h |
| +++ b/cc/raster/tile_task_runner.h |
| @@ -58,9 +58,22 @@ class CC_EXPORT ImageDecodeTask : public TileTask { |
| public: |
| typedef std::vector<scoped_refptr<ImageDecodeTask>> Vector; |
| + // Whether this ImageDecodeTask can be run at the same time as other tasks in |
| + // the task graph. If false, this task will be scheduled with |
| + // TASK_CATEGORY_NONCONCURRENT_FOREGROUND. The base implementation always |
| + // returns true. |
| + virtual bool SupportsConcurrentExecution() const; |
| + |
| + // Returns an optional task which this task depends on. May be null. |
| + scoped_refptr<ImageDecodeTask> dependency() { return dependency_; } |
|
vmpstr
2016/03/25 22:37:29
const scoped_refptr& to avoid unnecessary refs.
ericrk
2016/03/28 22:10:51
Done.
|
| + |
| protected: |
| ImageDecodeTask(); |
| + explicit ImageDecodeTask(scoped_refptr<ImageDecodeTask> dependency); |
| ~ImageDecodeTask() override; |
| + |
| + private: |
| + scoped_refptr<ImageDecodeTask> dependency_; |
| }; |
| class CC_EXPORT RasterTask : public TileTask { |