OSDN Git Service

Merge remote-tracking branch 'goffioul/master'
[android-x86/external-drmfb-composer.git] / DrmCallback.h
1 // SPDX-License-Identifier: Apache-2.0
2 // Copyright (C) 2019 Stephan Gerhold
3
4 #pragma once
5
6 #include <android/hardware/graphics/composer/2.1/IComposer.h>
7
8 namespace android {
9 namespace hardware {
10 namespace graphics {
11 namespace composer {
12 namespace V2_1 {
13 namespace drmfb {
14
15 struct DrmDisplay;
16
17 struct DrmCallback {
18     virtual ~DrmCallback() = default;
19     virtual void onHotplug(const DrmDisplay& display, bool connected) = 0;
20     virtual void onVsync(const DrmDisplay& display, int64_t timestamp) = 0;
21 };
22
23 }  // namespace drmfb
24 }  // namespace V2_1
25 }  // namespace composer
26 }  // namespace graphics
27 }  // namespace hardware
28 }  // namespace android