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

Unified Diff: mojo/ui/choreographer.cc

Issue 1997513002: Mozart: Generalize frame scheduling. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-jank2
Patch Set: add comments Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/ui/choreographer.h ('k') | services/gfx/compositor/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/ui/choreographer.cc
diff --git a/mojo/ui/choreographer.cc b/mojo/ui/choreographer.cc
index 758b70e4063d2da4fe12d08b4a6e59c86a8cd55d..4267267171f504a73852aca09bb7bdd1fc972782 100644
--- a/mojo/ui/choreographer.cc
+++ b/mojo/ui/choreographer.cc
@@ -15,14 +15,14 @@ Choreographer::Choreographer(mojo::gfx::composition::Scene* scene,
ChoreographerDelegate* delegate)
: delegate_(delegate) {
DCHECK(delegate_);
- scene->GetScheduler(mojo::GetProxy(&scene_scheduler_));
+ scene->GetScheduler(mojo::GetProxy(&frame_scheduler_));
}
Choreographer::Choreographer(
- mojo::gfx::composition::SceneSchedulerPtr scene_scheduler,
+ mojo::gfx::composition::FrameSchedulerPtr frame_scheduler,
ChoreographerDelegate* delegate)
- : scene_scheduler_(scene_scheduler.Pass()), delegate_(delegate) {
- DCHECK(scene_scheduler_);
+ : frame_scheduler_(frame_scheduler.Pass()), delegate_(delegate) {
+ DCHECK(frame_scheduler_);
DCHECK(delegate_);
}
@@ -38,7 +38,7 @@ void Choreographer::ScheduleDraw() {
void Choreographer::ScheduleFrame() {
if (!frame_scheduled_) {
frame_scheduled_ = true;
- scene_scheduler_->ScheduleFrame(
+ frame_scheduler_->ScheduleFrame(
base::Bind(&Choreographer::DoFrame, base::Unretained(this)));
}
}
« no previous file with comments | « mojo/ui/choreographer.h ('k') | services/gfx/compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698