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

Unified Diff: cc/raster/tile_task_runner.h

Issue 1832573004: Gpu Image Decode Controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « cc/playback/draw_image.h ('k') | cc/raster/tile_task_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/tile_task_runner.h
diff --git a/cc/raster/tile_task_runner.h b/cc/raster/tile_task_runner.h
index 8c3bb341594312dee8f977a450e9d4f02d904598..fe0457506e3ab21db26c0f290d443e6d049d57c8 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;
+ // Indicates 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.
+ const scoped_refptr<ImageDecodeTask>& dependency() { return dependency_; }
+
protected:
ImageDecodeTask();
+ explicit ImageDecodeTask(scoped_refptr<ImageDecodeTask> dependency);
~ImageDecodeTask() override;
+
+ private:
+ scoped_refptr<ImageDecodeTask> dependency_;
};
class CC_EXPORT RasterTask : public TileTask {
« no previous file with comments | « cc/playback/draw_image.h ('k') | cc/raster/tile_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698