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

Unified Diff: cc/raster/tile_task_runner.h

Issue 1866043006: cc: Remove ScheduleOnOriginThread() and CompleteOnOriginThread(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip 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/tile_task_runner.h
diff --git a/cc/raster/tile_task_runner.h b/cc/raster/tile_task_runner.h
index 5e2f7fd1c96e96b6a4806ebdaa95badc7861d146..a22ee4601d000a0f627b7a004824876da04b6029 100644
--- a/cc/raster/tile_task_runner.h
+++ b/cc/raster/tile_task_runner.h
@@ -35,14 +35,6 @@ class CC_EXPORT TileTask : public Task {
public:
typedef std::vector<scoped_refptr<TileTask>> Vector;
- virtual void ScheduleOnOriginThread(TileTaskClient* client) = 0;
- virtual void CompleteOnOriginThread(TileTaskClient* client) = 0;
-
- void WillSchedule();
- void DidSchedule();
- bool HasBeenScheduled() const;
-
- void WillComplete();
void DidComplete();
bool HasCompleted() const;
@@ -50,7 +42,6 @@ class CC_EXPORT TileTask : public Task {
TileTask();
~TileTask() override;
- bool did_schedule_;
bool did_complete_;
};
@@ -94,8 +85,8 @@ class CC_EXPORT TileTaskRunner {
// ScheduleTasks().
virtual void ScheduleTasks(TaskGraph* graph) = 0;
- // Check for completed tasks and dispatch reply callbacks.
- virtual void CheckForCompletedTasks() = 0;
+ // Collect completed tasks.
+ virtual void CollectCompletedTasks(Task::Vector* completed_tasks) = 0;
// Returns the format to use for the tiles.
virtual ResourceFormat GetResourceFormat(bool must_support_alpha) const = 0;
@@ -103,6 +94,9 @@ class CC_EXPORT TileTaskRunner {
// Determine if the resource requires swizzling.
virtual bool GetResourceRequiresSwizzle(bool must_support_alpha) const = 0;
+ // TODO(prashant.n): This will be removed soon. Don't use this.
+ virtual TileTaskClient* AsTileTaskClient() = 0;
+
protected:
// Check if resource format matches output format.
static bool ResourceFormatRequiresSwizzle(ResourceFormat format);

Powered by Google App Engine
This is Rietveld 408576698