| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/time/time.h" | 5 #include "base/time/time.h" |
| 6 #include "cc/debug/lap_timer.h" | 6 #include "cc/debug/lap_timer.h" |
| 7 #include "cc/resources/raster_buffer.h" | 7 #include "cc/resources/raster_buffer.h" |
| 8 #include "cc/resources/tile.h" | 8 #include "cc/resources/tile.h" |
| 9 #include "cc/resources/tile_priority.h" | 9 #include "cc/resources/tile_priority.h" |
| 10 #include "cc/test/begin_frame_args_test.h" | 10 #include "cc/test/begin_frame_args_test.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 ++it) { | 46 ++it) { |
| 47 RasterTask* task = it->task; | 47 RasterTask* task = it->task; |
| 48 | 48 |
| 49 task->WillSchedule(); | 49 task->WillSchedule(); |
| 50 task->ScheduleOnOriginThread(this); | 50 task->ScheduleOnOriginThread(this); |
| 51 task->DidSchedule(); | 51 task->DidSchedule(); |
| 52 | 52 |
| 53 completed_tasks_.push_back(task); | 53 completed_tasks_.push_back(task); |
| 54 } | 54 } |
| 55 } | 55 } |
| 56 void WaitForTasksToFinishRunning() override { |
| 57 // Everything completes instantly; nothing to do. |
| 58 } |
| 56 void CheckForCompletedTasks() override { | 59 void CheckForCompletedTasks() override { |
| 57 for (RasterTask::Vector::iterator it = completed_tasks_.begin(); | 60 for (RasterTask::Vector::iterator it = completed_tasks_.begin(); |
| 58 it != completed_tasks_.end(); | 61 it != completed_tasks_.end(); |
| 59 ++it) { | 62 ++it) { |
| 60 RasterTask* task = it->get(); | 63 RasterTask* task = it->get(); |
| 61 | 64 |
| 62 task->WillComplete(); | 65 task->WillComplete(); |
| 63 task->CompleteOnOriginThread(this); | 66 task->CompleteOnOriginThread(this); |
| 64 task->DidComplete(); | 67 task->DidComplete(); |
| 65 | 68 |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); | 489 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); |
| 487 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); | 490 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); |
| 488 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); | 491 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); |
| 489 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); | 492 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); |
| 490 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); | 493 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); |
| 491 } | 494 } |
| 492 | 495 |
| 493 } // namespace | 496 } // namespace |
| 494 | 497 |
| 495 } // namespace cc | 498 } // namespace cc |
| OLD | NEW |