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

Side by Side Diff: services/surfaces/surfaces_scheduler.cc

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 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 unified diff | Download patch
« no previous file with comments | « services/surfaces/surfaces_scheduler.h ('k') | services/window_manager/focus_controller.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 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 "services/surfaces/surfaces_scheduler.h" 5 #include "services/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(), nullptr);
15 nullptr);
16 scheduler_->SetCanStart(); 15 scheduler_->SetCanStart();
17 scheduler_->SetVisible(true); 16 scheduler_->SetVisible(true);
18 scheduler_->SetCanDraw(true); 17 scheduler_->SetCanDraw(true);
19 scheduler_->SetNeedsCommit(); 18 scheduler_->SetNeedsCommit();
20 } 19 }
21 20
22 SurfacesScheduler::~SurfacesScheduler() { 21 SurfacesScheduler::~SurfacesScheduler() {
23 } 22 }
24 23
25 void SurfacesScheduler::SetNeedsDraw() { 24 void SurfacesScheduler::SetNeedsDraw() {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 104 }
106 105
107 void SurfacesScheduler::SendBeginFramesToChildren( 106 void SurfacesScheduler::SendBeginFramesToChildren(
108 const cc::BeginFrameArgs& args) { 107 const cc::BeginFrameArgs& args) {
109 } 108 }
110 109
111 void SurfacesScheduler::SendBeginMainFrameNotExpectedSoon() { 110 void SurfacesScheduler::SendBeginMainFrameNotExpectedSoon() {
112 } 111 }
113 112
114 } // namespace mojo 113 } // namespace mojo
OLDNEW
« no previous file with comments | « services/surfaces/surfaces_scheduler.h ('k') | services/window_manager/focus_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698