Index: cc/raster/pixel_buffer_tile_task_worker_pool.cc |
diff --git a/cc/raster/pixel_buffer_tile_task_worker_pool.cc b/cc/raster/pixel_buffer_tile_task_worker_pool.cc |
index df79519485d8d3ee1b1301e24b699c235467c81b..bdd9bbf76ce7f015d9eef39e4c75d0f32bae7bee 100644 |
--- a/cc/raster/pixel_buffer_tile_task_worker_pool.cc |
+++ b/cc/raster/pixel_buffer_tile_task_worker_pool.cc |
@@ -438,7 +438,7 @@ void PixelBufferTileTaskWorkerPool::CheckForCompletedUploads() { |
// We can use UncheckedMemorySizeBytes here, since these tasks come from |
// tiles, the size of which is controlled by the compositor. |
- bytes_pending_upload_ -= Resource::UncheckedMemorySizeBytes( |
+ bytes_pending_upload_ -= ResourceUtil::UncheckedMemorySizeBytes( |
task->resource()->size(), task->resource()->format()); |
task->WillComplete(); |
@@ -547,7 +547,7 @@ void PixelBufferTileTaskWorkerPool::ScheduleMoreTasks() { |
size_t new_bytes_pending_upload = bytes_pending_upload; |
// We can use UncheckedMemorySizeBytes here, since these tasks come from |
// tiles, the size of which is controlled by the compositor. |
- new_bytes_pending_upload += Resource::UncheckedMemorySizeBytes( |
+ new_bytes_pending_upload += ResourceUtil::UncheckedMemorySizeBytes( |
task->resource()->size(), task->resource()->format()); |
if (new_bytes_pending_upload > max_bytes_pending_upload_ && |
bytes_pending_upload) { |
@@ -714,7 +714,7 @@ void PixelBufferTileTaskWorkerPool::CheckForCompletedRasterizerTasks() { |
// We can use UncheckedMemorySizeBytes here, since these tasks come from |
// tiles, the size of which is controlled by the compositor. |
- bytes_pending_upload_ += Resource::UncheckedMemorySizeBytes( |
+ bytes_pending_upload_ += ResourceUtil::UncheckedMemorySizeBytes( |
raster_task->resource()->size(), raster_task->resource()->format()); |
raster_tasks_with_pending_upload_.push_back(raster_task); |
state.type = RasterTaskState::UPLOADING; |