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

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: respond to Brian's comments Created 3 years, 8 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 DCHECK(IsMainThread()); 67 DCHECK(IsMainThread());
68 layer_tree_host_->DidReceiveCompositorFrameAck(); 68 layer_tree_host_->DidReceiveCompositorFrameAck();
69 } 69 }
70 70
71 void ProxyMain::BeginMainFrameNotExpectedSoon() { 71 void ProxyMain::BeginMainFrameNotExpectedSoon() {
72 TRACE_EVENT0("cc", "ProxyMain::BeginMainFrameNotExpectedSoon"); 72 TRACE_EVENT0("cc", "ProxyMain::BeginMainFrameNotExpectedSoon");
73 DCHECK(IsMainThread()); 73 DCHECK(IsMainThread());
74 layer_tree_host_->BeginMainFrameNotExpectedSoon(); 74 layer_tree_host_->BeginMainFrameNotExpectedSoon();
75 } 75 }
76 76
77 void ProxyMain::BeginMainFrameNotExpectedUntil(base::TimeTicks time) {
78 TRACE_EVENT0("cc", "ProxyMain::BeginMainFrameNotExpectedUntil");
79 DCHECK(IsMainThread());
80 layer_tree_host_->BeginMainFrameNotExpectedUntil(time);
81 }
82
77 void ProxyMain::DidCommitAndDrawFrame() { 83 void ProxyMain::DidCommitAndDrawFrame() {
78 DCHECK(IsMainThread()); 84 DCHECK(IsMainThread());
79 layer_tree_host_->DidCommitAndDrawFrame(); 85 layer_tree_host_->DidCommitAndDrawFrame();
80 } 86 }
81 87
82 void ProxyMain::SetAnimationEvents(std::unique_ptr<MutatorEvents> events) { 88 void ProxyMain::SetAnimationEvents(std::unique_ptr<MutatorEvents> events) {
83 TRACE_EVENT0("cc", "ProxyMain::SetAnimationEvents"); 89 TRACE_EVENT0("cc", "ProxyMain::SetAnimationEvents");
84 DCHECK(IsMainThread()); 90 DCHECK(IsMainThread());
85 layer_tree_host_->SetAnimationEvents(std::move(events)); 91 layer_tree_host_->SetAnimationEvents(std::move(events));
86 } 92 }
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 511
506 bool ProxyMain::IsImplThread() const { 512 bool ProxyMain::IsImplThread() const {
507 return task_runner_provider_->IsImplThread(); 513 return task_runner_provider_->IsImplThread();
508 } 514 }
509 515
510 base::SingleThreadTaskRunner* ProxyMain::ImplThreadTaskRunner() { 516 base::SingleThreadTaskRunner* ProxyMain::ImplThreadTaskRunner() {
511 return task_runner_provider_->ImplThreadTaskRunner(); 517 return task_runner_provider_->ImplThreadTaskRunner();
512 } 518 }
513 519
514 } // namespace cc 520 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698