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

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: Fix unittests Created 4 years, 9 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 db52685a8acf1446dc310a9a37a524772ba9926e..f6b5e507c736b9d3a60f70aba5716972517a4809 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