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

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

Issue 2753843003: Create a new action triggered when a BeginMainFrame is not expected before vsync (Closed)
Patch Set: Add BeginMainFrameNotExpectedUntil to content::CompositorImpl for Android. Created 3 years, 7 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 DCHECK(IsMainThread()); 68 DCHECK(IsMainThread());
69 layer_tree_host_->DidReceiveCompositorFrameAck(); 69 layer_tree_host_->DidReceiveCompositorFrameAck();
70 } 70 }
71 71
72 void ProxyMain::BeginMainFrameNotExpectedSoon() { 72 void ProxyMain::BeginMainFrameNotExpectedSoon() {
73 TRACE_EVENT0("cc", "ProxyMain::BeginMainFrameNotExpectedSoon"); 73 TRACE_EVENT0("cc", "ProxyMain::BeginMainFrameNotExpectedSoon");
74 DCHECK(IsMainThread()); 74 DCHECK(IsMainThread());
75 layer_tree_host_->BeginMainFrameNotExpectedSoon(); 75 layer_tree_host_->BeginMainFrameNotExpectedSoon();
76 } 76 }
77 77
78 void ProxyMain::BeginMainFrameNotExpectedUntil(base::TimeTicks time) {
79 TRACE_EVENT0("cc", "ProxyMain::BeginMainFrameNotExpectedUntil");
80 DCHECK(IsMainThread());
81 layer_tree_host_->BeginMainFrameNotExpectedUntil(time);
82 }
83
78 void ProxyMain::DidCommitAndDrawFrame() { 84 void ProxyMain::DidCommitAndDrawFrame() {
79 DCHECK(IsMainThread()); 85 DCHECK(IsMainThread());
80 layer_tree_host_->DidCommitAndDrawFrame(); 86 layer_tree_host_->DidCommitAndDrawFrame();
81 } 87 }
82 88
83 void ProxyMain::SetAnimationEvents(std::unique_ptr<MutatorEvents> events) { 89 void ProxyMain::SetAnimationEvents(std::unique_ptr<MutatorEvents> events) {
84 TRACE_EVENT0("cc", "ProxyMain::SetAnimationEvents"); 90 TRACE_EVENT0("cc", "ProxyMain::SetAnimationEvents");
85 DCHECK(IsMainThread()); 91 DCHECK(IsMainThread());
86 layer_tree_host_->SetAnimationEvents(std::move(events)); 92 layer_tree_host_->SetAnimationEvents(std::move(events));
87 } 93 }
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 518
513 bool ProxyMain::IsImplThread() const { 519 bool ProxyMain::IsImplThread() const {
514 return task_runner_provider_->IsImplThread(); 520 return task_runner_provider_->IsImplThread();
515 } 521 }
516 522
517 base::SingleThreadTaskRunner* ProxyMain::ImplThreadTaskRunner() { 523 base::SingleThreadTaskRunner* ProxyMain::ImplThreadTaskRunner() {
518 return task_runner_provider_->ImplThreadTaskRunner(); 524 return task_runner_provider_->ImplThreadTaskRunner();
519 } 525 }
520 526
521 } // namespace cc 527 } // 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