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

Unified Diff: cc/raster/zero_copy_tile_task_worker_pool.cc

Issue 1854723002: cc: Simplify task and its derived classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected scope of dependencies. 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/zero_copy_tile_task_worker_pool.cc
diff --git a/cc/raster/zero_copy_tile_task_worker_pool.cc b/cc/raster/zero_copy_tile_task_worker_pool.cc
index da962333e1a5fa440880ca08d5dacc876cdbb399..4f06c7a074451905cb88061a81e139b9294a2160 100644
--- a/cc/raster/zero_copy_tile_task_worker_pool.cc
+++ b/cc/raster/zero_copy_tile_task_worker_pool.cc
@@ -13,7 +13,6 @@
#include "base/trace_event/trace_event.h"
#include "base/trace_event/trace_event_argument.h"
#include "cc/debug/traced_value.h"
-#include "cc/raster/raster_buffer.h"
#include "cc/resources/platform_color.h"
#include "cc/resources/resource.h"
#include "ui/gfx/buffer_format_util.h"
@@ -104,7 +103,7 @@ void ZeroCopyTileTaskWorkerPool::Shutdown() {
void ZeroCopyTileTaskWorkerPool::ScheduleTasks(TaskGraph* graph) {
TRACE_EVENT0("cc", "ZeroCopyTileTaskWorkerPool::ScheduleTasks");
- ScheduleTasksOnOriginThread(this, graph);
+ ScheduleTasksOnOriginThread(graph);
task_graph_runner_->ScheduleTasks(namespace_token_, graph);
}
@@ -115,10 +114,10 @@ void ZeroCopyTileTaskWorkerPool::CheckForCompletedTasks() {
&completed_tasks_);
for (Task::Vector::const_iterator it = completed_tasks_.begin();
it != completed_tasks_.end(); ++it) {
- TileTask* task = static_cast<TileTask*>(it->get());
+ Task* task = it->get();
task->WillComplete();
- task->CompleteOnOriginThread(this);
+ task->CompleteOnOriginThread();
task->DidComplete();
}
completed_tasks_.clear();

Powered by Google App Engine
This is Rietveld 408576698