blob: c2f5fef056ee3a2158a3b9d6ccef0ff8183a52d4 [file] [log] [blame]
Peiyong Lin2b3f8262018-07-20 16:03:46 -07001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.1 (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.1
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
Sundong Ahne64a2282019-02-22 11:52:42 +090017#ifndef ANDROID_HARDWARE_CONFIGSTORE_V1_1_SURFACEFLINGERCONFIGS_H
18#define ANDROID_HARDWARE_CONFIGSTORE_V1_1_SURFACEFLINGERCONFIGS_H
Peiyong Lin2b3f8262018-07-20 16:03:46 -070019
Sundong Ahne64a2282019-02-22 11:52:42 +090020#include <android/hardware/configstore/1.1/ISurfaceFlingerConfigs.h>
Peiyong Lin2b3f8262018-07-20 16:03:46 -070021#include <hidl/MQDescriptor.h>
22#include <hidl/Status.h>
23
24namespace android {
25namespace hardware {
26namespace configstore {
Sundong Ahne64a2282019-02-22 11:52:42 +090027namespace V1_1 {
Peiyong Lin2b3f8262018-07-20 16:03:46 -070028namespace implementation {
29
30using ::android::sp;
31using ::android::hardware::Return;
32using ::android::hardware::Void;
Sundong Ahne64a2282019-02-22 11:52:42 +090033using ::android::hardware::configstore::V1_1::ISurfaceFlingerConfigs;
Peiyong Lin2b3f8262018-07-20 16:03:46 -070034
35struct SurfaceFlingerConfigs : public ISurfaceFlingerConfigs {
36 // ::android::hardware::configstore::V1_0::ISurfaceFlingerConfigs implementation.
37 Return<void> vsyncEventPhaseOffsetNs(vsyncEventPhaseOffsetNs_cb _hidl_cb) override;
38 Return<void> vsyncSfEventPhaseOffsetNs(vsyncSfEventPhaseOffsetNs_cb _hidl_cb) override;
39 Return<void> useContextPriority(useContextPriority_cb _hidl_cb) override;
40 Return<void> hasWideColorDisplay(hasWideColorDisplay_cb _hidl_cb) override;
41 Return<void> hasHDRDisplay(hasHDRDisplay_cb _hidl_cb) override;
42 Return<void> presentTimeOffsetFromVSyncNs(presentTimeOffsetFromVSyncNs_cb _hidl_cb) override;
43 Return<void> useHwcForRGBtoYUV(useHwcForRGBtoYUV_cb _hidl_cb) override;
44 Return<void> maxVirtualDisplaySize(maxVirtualDisplaySize_cb _hidl_cb) override;
45 Return<void> hasSyncFramework(hasSyncFramework_cb _hidl_cb) override;
46 Return<void> useVrFlinger(useVrFlinger_cb _hidl_cb) override;
47 Return<void> maxFrameBufferAcquiredBuffers(maxFrameBufferAcquiredBuffers_cb _hidl_cb) override;
48 Return<void> startGraphicsAllocatorService(startGraphicsAllocatorService_cb _hidl_cb) override;
49
50 // ::android::hardware::configstore::V1_1::ISurfaceFlingerConfigs follow implementation.
51 Return<void> primaryDisplayOrientation(primaryDisplayOrientation_cb _hidl_cb) override;
Peiyong Lin2b3f8262018-07-20 16:03:46 -070052};
53
54} // namespace implementation
Sundong Ahne64a2282019-02-22 11:52:42 +090055} // namespace V1_1
Peiyong Lin2b3f8262018-07-20 16:03:46 -070056} // namespace configstore
57} // namespace hardware
58} // namespace android
59
Sundong Ahne64a2282019-02-22 11:52:42 +090060#endif // ANDROID_HARDWARE_CONFIGSTORE_V1_1_SURFACEFLINGERCONFIGS_H