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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
6 module vsync; | 6 module vsync; |
7 | 7 |
| 8 [ServiceName="vsync::VSyncProvider"] |
8 interface VSyncProvider { | 9 interface VSyncProvider { |
9 // Waits for the next vsync and returns its timestamp once it happens. The | 10 // Waits for the next vsync and returns its timestamp once it happens. The |
10 // timestamps can only be compared with other calls of this method. | 11 // timestamps can only be compared with other calls of this method. |
11 // Only one callback can be parked at a given time. | 12 // Only one callback can be parked at a given time. |
12 AwaitVSync() => (int64 time_stamp); | 13 AwaitVSync() => (int64 time_stamp); |
13 }; | 14 }; |
OLD | NEW |