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

Unified Diff: cc/trees/proxy_impl.cc

Issue 1821863002: Hook up ui::Compositor to Display's BeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really revert task runner changes Created 4 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/proxy_impl.cc
diff --git a/cc/trees/proxy_impl.cc b/cc/trees/proxy_impl.cc
index a994e85579a44da0f5f53bee3b1c0d8fdacb03a3..12fcdf5523cf60faa666dd86d291c58868015ae1 100644
--- a/cc/trees/proxy_impl.cc
+++ b/cc/trees/proxy_impl.cc
@@ -301,6 +301,12 @@ void ProxyImpl::CommitVSyncParameters(base::TimeTicks timebase,
synthetic_begin_frame_source_->OnUpdateVSyncParameters(timebase, interval);
}
+void ProxyImpl::SetBeginFrameSource(BeginFrameSource* source) {
+ // TODO(enne): this overrides any preexisting begin frame source. Those
+ // other sources will eventually be removed and this will be the only path.
+ scheduler_->SetBeginFrameSource(source);
+}
+
void ProxyImpl::SetEstimatedParentDrawTime(base::TimeDelta draw_time) {
DCHECK(IsImplThread());
scheduler_->SetEstimatedParentDrawTime(draw_time);

Powered by Google App Engine
This is Rietveld 408576698