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