Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: gpu/ipc/service/child_window_win.cc

Issue 2729073002: Fix DirectCompositionSurfaceTest.TestMakeCurrent flakiness. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/service/child_window_win.h ('k') | gpu/ipc/service/direct_composition_surface_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/ipc/service/child_window_win.h ('k') | gpu/ipc/service/direct_composition_surface_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698