2018-07-21 01:03:46 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 The Android Open Source Project
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.1 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.1
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2019-02-22 03:52:42 +01:00
|
|
|
#ifndef ANDROID_HARDWARE_CONFIGSTORE_V1_1_SURFACEFLINGERCONFIGS_H
|
|
|
|
#define ANDROID_HARDWARE_CONFIGSTORE_V1_1_SURFACEFLINGERCONFIGS_H
|
2018-07-21 01:03:46 +02:00
|
|
|
|
2019-02-22 03:52:42 +01:00
|
|
|
#include <android/hardware/configstore/1.1/ISurfaceFlingerConfigs.h>
|
2017-01-14 11:40:33 +01:00
|
|
|
#include <hidl/MQDescriptor.h>
|
|
|
|
#include <hidl/Status.h>
|
|
|
|
|
|
|
|
namespace android {
|
|
|
|
namespace hardware {
|
|
|
|
namespace configstore {
|
2019-02-22 03:52:42 +01:00
|
|
|
namespace V1_1 {
|
2017-01-14 11:40:33 +01:00
|
|
|
namespace implementation {
|
|
|
|
|
2018-07-21 01:03:46 +02:00
|
|
|
using ::android::sp;
|
2017-01-14 11:40:33 +01:00
|
|
|
using ::android::hardware::Return;
|
|
|
|
using ::android::hardware::Void;
|
2019-02-22 03:52:42 +01:00
|
|
|
using ::android::hardware::configstore::V1_1::ISurfaceFlingerConfigs;
|
2017-01-14 11:40:33 +01:00
|
|
|
|
|
|
|
struct SurfaceFlingerConfigs : public ISurfaceFlingerConfigs {
|
2018-07-21 01:03:46 +02:00
|
|
|
// ::android::hardware::configstore::V1_0::ISurfaceFlingerConfigs implementation.
|
2017-01-14 11:40:33 +01:00
|
|
|
Return<void> vsyncEventPhaseOffsetNs(vsyncEventPhaseOffsetNs_cb _hidl_cb) override;
|
2017-04-28 11:29:40 +02:00
|
|
|
Return<void> vsyncSfEventPhaseOffsetNs(vsyncSfEventPhaseOffsetNs_cb _hidl_cb) override;
|
2017-03-13 21:03:04 +01:00
|
|
|
Return<void> useContextPriority(useContextPriority_cb _hidl_cb) override;
|
2017-03-09 17:04:29 +01:00
|
|
|
Return<void> hasWideColorDisplay(hasWideColorDisplay_cb _hidl_cb) override;
|
|
|
|
Return<void> hasHDRDisplay(hasHDRDisplay_cb _hidl_cb) override;
|
2017-03-14 21:16:30 +01:00
|
|
|
Return<void> presentTimeOffsetFromVSyncNs(presentTimeOffsetFromVSyncNs_cb _hidl_cb) override;
|
2017-03-14 19:43:18 +01:00
|
|
|
Return<void> useHwcForRGBtoYUV(useHwcForRGBtoYUV_cb _hidl_cb) override;
|
2017-03-10 19:31:14 +01:00
|
|
|
Return<void> maxVirtualDisplaySize(maxVirtualDisplaySize_cb _hidl_cb) override;
|
2017-03-11 02:15:43 +01:00
|
|
|
Return<void> hasSyncFramework(hasSyncFramework_cb _hidl_cb) override;
|
2017-03-14 01:42:18 +01:00
|
|
|
Return<void> useVrFlinger(useVrFlinger_cb _hidl_cb) override;
|
2017-03-11 00:37:07 +01:00
|
|
|
Return<void> maxFrameBufferAcquiredBuffers(maxFrameBufferAcquiredBuffers_cb _hidl_cb) override;
|
2017-04-28 11:29:40 +02:00
|
|
|
Return<void> startGraphicsAllocatorService(startGraphicsAllocatorService_cb _hidl_cb) override;
|
2017-01-14 11:40:33 +01:00
|
|
|
|
2018-07-21 01:03:46 +02:00
|
|
|
// ::android::hardware::configstore::V1_1::ISurfaceFlingerConfigs follow implementation.
|
2017-04-28 11:29:40 +02:00
|
|
|
Return<void> primaryDisplayOrientation(primaryDisplayOrientation_cb _hidl_cb) override;
|
2017-01-14 11:40:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace implementation
|
2019-02-22 03:52:42 +01:00
|
|
|
} // namespace V1_1
|
2017-01-14 11:40:33 +01:00
|
|
|
} // namespace configstore
|
|
|
|
} // namespace hardware
|
|
|
|
} // namespace android
|
|
|
|
|
2019-02-22 03:52:42 +01:00
|
|
|
#endif // ANDROID_HARDWARE_CONFIGSTORE_V1_1_SURFACEFLINGERCONFIGS_H
|