Index: cc/raster/gpu_tile_task_worker_pool.cc |
diff --git a/cc/raster/gpu_tile_task_worker_pool.cc b/cc/raster/gpu_tile_task_worker_pool.cc |
index 27d0a4651559e8a5d2402a09aaa422e9824924ca..e157ab5d9392b4e670326eb9a010ea49f642ebb2 100644 |
--- a/cc/raster/gpu_tile_task_worker_pool.cc |
+++ b/cc/raster/gpu_tile_task_worker_pool.cc |
@@ -12,7 +12,6 @@ |
#include "base/trace_event/trace_event.h" |
#include "cc/playback/raster_source.h" |
#include "cc/raster/gpu_rasterizer.h" |
-#include "cc/raster/raster_buffer.h" |
#include "cc/raster/scoped_gpu_raster.h" |
#include "cc/resources/resource.h" |
#include "gpu/command_buffer/client/gles2_interface.h" |
@@ -135,7 +134,7 @@ void GpuTileTaskWorkerPool::Shutdown() { |
void GpuTileTaskWorkerPool::ScheduleTasks(TaskGraph* graph) { |
TRACE_EVENT0("cc", "GpuTileTaskWorkerPool::ScheduleTasks"); |
- ScheduleTasksOnOriginThread(this, graph); |
+ ScheduleTasksOnOriginThread(graph); |
// Barrier to sync any new resources to the worker context. |
rasterizer_->resource_provider() |
@@ -169,11 +168,9 @@ bool GpuTileTaskWorkerPool::GetResourceRequiresSwizzle( |
void GpuTileTaskWorkerPool::CompleteTasks(const Task::Vector& tasks) { |
for (auto& task : tasks) { |
- TileTask* tile_task = static_cast<TileTask*>(task.get()); |
- |
- tile_task->WillComplete(); |
- tile_task->CompleteOnOriginThread(this); |
- tile_task->DidComplete(); |
+ task->WillComplete(); |
+ task->CompleteOnOriginThread(); |
+ task->DidComplete(); |
} |
completed_tasks_.clear(); |
} |