mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
15 lines
516 B
Plaintext
15 lines
516 B
Plaintext
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
[DartPackage="mojo_services"]
|
|
module vsync;
|
|
|
|
[ServiceName="vsync::VSyncProvider"]
|
|
interface VSyncProvider {
|
|
// Waits for the next vsync and returns its timestamp once it happens. The
|
|
// timestamps can only be compared with other calls of this method.
|
|
// Only one callback can be parked at a given time.
|
|
AwaitVSync() => (int64 time_stamp);
|
|
};
|