OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "cc/trees/proxy_main.h" | 5 #include "cc/trees/proxy_main.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 } | 477 } |
478 | 478 |
479 bool ProxyMain::IsImplThread() const { | 479 bool ProxyMain::IsImplThread() const { |
480 return task_runner_provider_->IsImplThread(); | 480 return task_runner_provider_->IsImplThread(); |
481 } | 481 } |
482 | 482 |
483 base::SingleThreadTaskRunner* ProxyMain::ImplThreadTaskRunner() { | 483 base::SingleThreadTaskRunner* ProxyMain::ImplThreadTaskRunner() { |
484 return task_runner_provider_->ImplThreadTaskRunner(); | 484 return task_runner_provider_->ImplThreadTaskRunner(); |
485 } | 485 } |
486 | 486 |
| 487 void ProxyMain::ResetTrees() { |
| 488 DCHECK(IsMainThread()); |
| 489 ImplThreadTaskRunner()->PostTask( |
| 490 FROM_HERE, |
| 491 base::Bind(&ProxyImpl::ResetTrees, base::Unretained(proxy_impl_.get()))); |
| 492 } |
| 493 |
487 } // namespace cc | 494 } // namespace cc |
OLD | NEW |