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

Unified Diff: cc/trees/proxy_impl.cc

Issue 2717553005: cc: Glue LTHI and Scheduler changes for checker-imaging. (Closed)
Patch Set: .. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/proxy_impl.cc
diff --git a/cc/trees/proxy_impl.cc b/cc/trees/proxy_impl.cc
index 7c2cb9fb26e060c5caf2f4c3a4d8887ec04d7ae1..56919567b05d4aaf1f6e229335ca2b94e68e79c4 100644
--- a/cc/trees/proxy_impl.cc
+++ b/cc/trees/proxy_impl.cc
@@ -434,9 +434,7 @@ void ProxyImpl::OnDrawForCompositorFrameSink(bool resourceless_software_draw) {
void ProxyImpl::NeedsImplSideInvalidation() {
DCHECK(IsImplThread());
- // TODO(khushalsagar): Plumb this to the scheduler when
- // https://codereview.chromium.org/2659123004/ lands. See crbug.com/686267.
- NOTIMPLEMENTED();
+ scheduler_->SetNeedsImplSideInvalidation();
}
void ProxyImpl::WillBeginImplFrame(const BeginFrameArgs& args) {
@@ -467,6 +465,7 @@ void ProxyImpl::ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) {
MainThreadTaskRunner()->PostTask(
FROM_HERE, base::Bind(&ProxyMain::BeginMainFrame, proxy_main_weak_ptr_,
base::Passed(&begin_main_frame_state)));
+ layer_tree_host_impl_->DidSendBeginMainFrame();
devtools_instrumentation::DidRequestMainThreadFrame(layer_tree_host_id_);
}
@@ -556,7 +555,9 @@ void ProxyImpl::ScheduledActionInvalidateCompositorFrameSink() {
}
void ProxyImpl::ScheduledActionPerformImplSideInvalidation() {
- NOTIMPLEMENTED();
+ TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionPerformImplSideInvalidation");
+ DCHECK(IsImplThread());
+ layer_tree_host_impl_->InvalidateContentOnImplSide();
}
void ProxyImpl::SendBeginMainFrameNotExpectedSoon() {
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698