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

Side by Side Diff: cc/trees/proxy_main.cc

Issue 2702433002: Clear renderer compositor trees if new page does not render in 4 seconds (Closed)
Patch Set: Removed a semicolon Created 3 years, 10 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 | « cc/trees/proxy_main.h ('k') | cc/trees/single_thread_proxy.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 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
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
OLDNEW
« no previous file with comments | « cc/trees/proxy_main.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698