| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/child_window_win.h" | 5 #include "gpu/ipc/service/child_window_win.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 if (shared_data_) { | 200 if (shared_data_) { |
| 201 scoped_refptr<base::TaskRunner> task_runner = | 201 scoped_refptr<base::TaskRunner> task_runner = |
| 202 shared_data_->thread.task_runner(); | 202 shared_data_->thread.task_runner(); |
| 203 task_runner->PostTaskAndReply( | 203 task_runner->PostTaskAndReply( |
| 204 FROM_HERE, | 204 FROM_HERE, |
| 205 base::Bind(&DestroyWindowsOnThread, window_, initial_parent_window_), | 205 base::Bind(&DestroyWindowsOnThread, window_, initial_parent_window_), |
| 206 base::Bind(&DestroySharedData, base::Passed(std::move(shared_data_)))); | 206 base::Bind(&DestroySharedData, base::Passed(std::move(shared_data_)))); |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 | 209 |
| 210 scoped_refptr<base::TaskRunner> ChildWindowWin::GetTaskRunnerForTesting() { |
| 211 DCHECK(shared_data_); |
| 212 return shared_data_->thread.task_runner(); |
| 213 } |
| 214 |
| 210 } // namespace gpu | 215 } // namespace gpu |
| OLD | NEW |