OLD | NEW |
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 Loading... |
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 |
OLD | NEW |