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(); |