| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/view_manager/surfaces/surfaces_scheduler.h" | 5 #include "components/view_manager/surfaces/surfaces_scheduler.h" |
| 6 | 6 |
| 7 #include "cc/surfaces/display.h" | 7 #include "cc/surfaces/display.h" |
| 8 | 8 |
| 9 namespace surfaces { | 9 namespace surfaces { |
| 10 | 10 |
| 11 SurfacesScheduler::SurfacesScheduler() { | 11 SurfacesScheduler::SurfacesScheduler() { |
| 12 cc::SchedulerSettings settings; | 12 cc::SchedulerSettings settings; |
| 13 scheduler_ = cc::Scheduler::Create( | 13 scheduler_ = cc::Scheduler::Create( |
| 14 this, settings, 0, base::MessageLoop::current()->task_runner(), nullptr); | 14 this, settings, 0, base::MessageLoop::current()->task_runner().get(), |
| 15 nullptr); |
| 15 scheduler_->SetCanStart(); | 16 scheduler_->SetCanStart(); |
| 16 scheduler_->SetVisible(true); | 17 scheduler_->SetVisible(true); |
| 17 scheduler_->SetCanDraw(true); | 18 scheduler_->SetCanDraw(true); |
| 18 scheduler_->SetNeedsCommit(); | 19 scheduler_->SetNeedsCommit(); |
| 19 } | 20 } |
| 20 | 21 |
| 21 SurfacesScheduler::~SurfacesScheduler() { | 22 SurfacesScheduler::~SurfacesScheduler() { |
| 22 } | 23 } |
| 23 | 24 |
| 24 void SurfacesScheduler::SetNeedsDraw() { | 25 void SurfacesScheduler::SetNeedsDraw() { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 110 } |
| 110 | 111 |
| 111 void SurfacesScheduler::SendBeginFramesToChildren( | 112 void SurfacesScheduler::SendBeginFramesToChildren( |
| 112 const cc::BeginFrameArgs& args) { | 113 const cc::BeginFrameArgs& args) { |
| 113 } | 114 } |
| 114 | 115 |
| 115 void SurfacesScheduler::SendBeginMainFrameNotExpectedSoon() { | 116 void SurfacesScheduler::SendBeginMainFrameNotExpectedSoon() { |
| 116 } | 117 } |
| 117 | 118 |
| 118 } // namespace mojo | 119 } // namespace mojo |
| OLD | NEW |