| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 "gpu/ipc/service/gpu_channel_test_common.h" | 5 #include "gpu/ipc/service/gpu_channel_test_common.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/test/test_simple_task_runner.h" | 8 #include "base/test/test_simple_task_runner.h" |
| 9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "gpu/command_buffer/service/sync_point_manager.h" | 10 #include "gpu/command_buffer/service/sync_point_manager.h" |
| 11 #include "gpu/ipc/service/gpu_channel_manager_delegate.h" | 11 #include "gpu/ipc/service/gpu_channel_manager_delegate.h" |
| 12 #include "ipc/ipc_test_sink.h" | 12 #include "ipc/ipc_test_sink.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 namespace gpu { | 15 namespace gpu { |
| 16 | 16 |
| 17 TestGpuChannelManagerDelegate::TestGpuChannelManagerDelegate() {} | 17 TestGpuChannelManagerDelegate::TestGpuChannelManagerDelegate() {} |
| 18 | 18 |
| 19 TestGpuChannelManagerDelegate::~TestGpuChannelManagerDelegate() {} | 19 TestGpuChannelManagerDelegate::~TestGpuChannelManagerDelegate() {} |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 157 |
| 158 GpuChannelTestCommon::~GpuChannelTestCommon() { | 158 GpuChannelTestCommon::~GpuChannelTestCommon() { |
| 159 // Destroying channels causes tasks to run on the IO task runner. | 159 // Destroying channels causes tasks to run on the IO task runner. |
| 160 channel_manager_ = nullptr; | 160 channel_manager_ = nullptr; |
| 161 // Clear pending tasks to avoid refptr cycles that get flagged by ASAN. | 161 // Clear pending tasks to avoid refptr cycles that get flagged by ASAN. |
| 162 task_runner_->ClearPendingTasks(); | 162 task_runner_->ClearPendingTasks(); |
| 163 io_task_runner_->ClearPendingTasks(); | 163 io_task_runner_->ClearPendingTasks(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace gpu | 166 } // namespace gpu |
| OLD | NEW |