blob: fe787890f095698a60c7fd26626b70af6854e7a6 [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
17#ifndef ANDROID_HARDWARE_CONFIGSTORE_V1_2_SURFACEFLINGERCONFIGS_H
18#define ANDROID_HARDWARE_CONFIGSTORE_V1_2_SURFACEFLINGERCONFIGS_H
19
20#include <android/hardware/configstore/1.2/ISurfaceFlingerConfigs.h>
21#include <hidl/MQDescriptor.h>
22#include <hidl/Status.h>
23
24namespace android {
25namespace hardware {
26namespace configstore {
27namespace V1_2 {
28namespace implementation {
29
30using ::android::sp;
31using ::android::hardware::Return;
32using ::android::hardware::Void;
33using ::android::hardware::configstore::V1_2::ISurfaceFlingerConfigs;
34
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;
52
53 // ::android::hardware::configstore::V1_2::ISurfaceFlingerConfigs follow implementation.
54 Return<void> useColorManagement(useColorManagement_cb _hidl_cb) override;
55};
56
57} // namespace implementation
58} // namespace V1_2
59} // namespace configstore
60} // namespace hardware
61} // namespace android
62
63#endif // ANDROID_HARDWARE_CONFIGSTORE_V1_2_SURFACEFLINGERCONFIGS_H