| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "cc/test/test_tile_task_runner.h" | 5 #include "cc/test/test_tile_task_runner.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace cc { | 9 namespace cc { |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 DCHECK(task); | 28 DCHECK(task); |
| 29 task->state().DidStart(); | 29 task->state().DidStart(); |
| 30 task->RunOnWorkerThread(); | 30 task->RunOnWorkerThread(); |
| 31 task->state().DidFinish(); | 31 task->state().DidFinish(); |
| 32 } | 32 } |
| 33 | 33 |
| 34 void TestTileTaskRunner::CompleteTask(TileTask* task) { | 34 void TestTileTaskRunner::CompleteTask(TileTask* task) { |
| 35 DCHECK(task); | 35 DCHECK(task); |
| 36 DCHECK(task->state().IsFinished() || task->state().IsCanceled()); | 36 DCHECK(task->state().IsFinished() || task->state().IsCanceled()); |
| 37 task->OnTaskCompleted(); | 37 task->OnTaskCompleted(); |
| 38 task->DidComplete(); |
| 38 } | 39 } |
| 39 | 40 |
| 40 } // namespace cc | 41 } // namespace cc |
| OLD | NEW |