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

Side by Side Diff: cc/scheduler/vsync_time_source.cc

Issue 12674030: cc: Hook vsync time source to output surface (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Review tweaks. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/scheduler/vsync_time_source.h ('k') | cc/scheduler/vsync_time_source_unittest.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "cc/scheduler/vsync_time_source.h" 5 #include "cc/scheduler/vsync_time_source.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 scoped_refptr<VSyncTimeSource> VSyncTimeSource::create( 9 scoped_refptr<VSyncTimeSource> VSyncTimeSource::Create(
10 VSyncProvider* vsync_provider) { 10 VSyncProvider* vsync_provider) {
11 return make_scoped_refptr(new VSyncTimeSource(vsync_provider)); 11 return make_scoped_refptr(new VSyncTimeSource(vsync_provider));
12 } 12 }
13 13
14 VSyncTimeSource::VSyncTimeSource(VSyncProvider* vsync_provider) 14 VSyncTimeSource::VSyncTimeSource(VSyncProvider* vsync_provider)
15 : vsync_provider_(vsync_provider) 15 : vsync_provider_(vsync_provider)
16 , client_(NULL) 16 , client_(NULL)
17 , active_(false) 17 , active_(false)
18 , notification_requested_(false) {} 18 , notification_requested_(false) {}
19 19
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 notification_requested_ = false; 60 notification_requested_ = false;
61 vsync_provider_->RequestVSyncNotification(NULL); 61 vsync_provider_->RequestVSyncNotification(NULL);
62 } 62 }
63 return; 63 return;
64 } 64 }
65 if (client_) 65 if (client_)
66 client_->OnTimerTick(); 66 client_->OnTimerTick();
67 } 67 }
68 68
69 } // namespace cc 69 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/vsync_time_source.h ('k') | cc/scheduler/vsync_time_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698