blob: 5c3f8bd99cbd962bf35ed4390255ded284f37e80 [file] [log] [blame]
Ady Abraham7882ae62019-10-10 17:04:47 -07001/*
2 * Copyright 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.graphics.composer@2.4;
18
19import @2.1::Display;
20import @2.1::IComposerCallback;
21
22interface IComposerCallback extends @2.1::IComposerCallback {
23 /**
24 * Notifies the client that a vsync event has occurred. This callback must
25 * only be triggered when vsync is enabled for this display (through
26 * setVsyncEnabled).
27 *
28 * @param display is the display which has received a vsync event
29 * @param timestamp is the CLOCK_MONOTONIC time at which the vsync event
30 * occurred, in nanoseconds.
31 * @param vsyncPeriodNanos is the display vsync period in nanoseconds i.e. the next onVsync_2_4
32 * is expected to be called vsyncPeriodNanos nanoseconds after this call.
33 */
34 oneway onVsync_2_4(Display display, int64_t timestamp, VsyncPeriodNanos vsyncPeriodNanos);
35};