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

Side by Side Diff: services/gfx/compositor/scene_impl.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 unified diff | Download patch
« no previous file with comments | « services/gfx/compositor/scene_impl.h ('k') | services/gfx/compositor/scene_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "services/gfx/compositor/scene_impl.h" 5 #include "services/gfx/compositor/scene_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 24 matching lines...) Expand all
35 35
36 void SceneImpl::Update(mojo::gfx::composition::SceneUpdatePtr update) { 36 void SceneImpl::Update(mojo::gfx::composition::SceneUpdatePtr update) {
37 engine_->Update(state_, update.Pass()); 37 engine_->Update(state_, update.Pass());
38 } 38 }
39 39
40 void SceneImpl::Publish(mojo::gfx::composition::SceneMetadataPtr metadata) { 40 void SceneImpl::Publish(mojo::gfx::composition::SceneMetadataPtr metadata) {
41 engine_->Publish(state_, metadata.Pass()); 41 engine_->Publish(state_, metadata.Pass());
42 } 42 }
43 43
44 void SceneImpl::GetScheduler( 44 void SceneImpl::GetScheduler(
45 mojo::InterfaceRequest<mojo::gfx::composition::SceneScheduler> 45 mojo::InterfaceRequest<mojo::gfx::composition::FrameScheduler>
46 scheduler_request) { 46 scheduler_request) {
47 scheduler_bindings_.AddBinding(this, scheduler_request.Pass()); 47 scheduler_bindings_.AddBinding(this, scheduler_request.Pass());
48 } 48 }
49 49
50 void SceneImpl::ScheduleFrame(const ScheduleFrameCallback& callback) { 50 void SceneImpl::ScheduleFrame(const ScheduleFrameCallback& callback) {
51 engine_->ScheduleFrame(state_, 51 engine_->ScheduleFrame(state_,
52 base::Bind(&RunScheduleFrameCallback, callback)); 52 base::Bind(RunScheduleFrameCallback, callback));
53 } 53 }
54 54
55 } // namespace compositor 55 } // namespace compositor
OLDNEW
« no previous file with comments | « services/gfx/compositor/scene_impl.h ('k') | services/gfx/compositor/scene_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698