Peiyong Lin | 2b3f826 | 2018-07-20 16:03:46 -0700 | [diff] [blame] | 1 | /* |
| 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 Ahn | e64a228 | 2019-02-22 11:52:42 +0900 | [diff] [blame] | 17 | #ifndef ANDROID_HARDWARE_CONFIGSTORE_V1_1_SURFACEFLINGERCONFIGS_H |
| 18 | #define ANDROID_HARDWARE_CONFIGSTORE_V1_1_SURFACEFLINGERCONFIGS_H |
Peiyong Lin | 2b3f826 | 2018-07-20 16:03:46 -0700 | [diff] [blame] | 19 | |
Sundong Ahn | e64a228 | 2019-02-22 11:52:42 +0900 | [diff] [blame] | 20 | #include <android/hardware/configstore/1.1/ISurfaceFlingerConfigs.h> |
Peiyong Lin | 2b3f826 | 2018-07-20 16:03:46 -0700 | [diff] [blame] | 21 | #include <hidl/MQDescriptor.h> |
| 22 | #include <hidl/Status.h> |
| 23 | |
| 24 | namespace android { |
| 25 | namespace hardware { |
| 26 | namespace configstore { |
Sundong Ahn | e64a228 | 2019-02-22 11:52:42 +0900 | [diff] [blame] | 27 | namespace V1_1 { |
Peiyong Lin | 2b3f826 | 2018-07-20 16:03:46 -0700 | [diff] [blame] | 28 | namespace implementation { |
| 29 | |
| 30 | using ::android::sp; |
| 31 | using ::android::hardware::Return; |
| 32 | using ::android::hardware::Void; |
Sundong Ahn | e64a228 | 2019-02-22 11:52:42 +0900 | [diff] [blame] | 33 | using ::android::hardware::configstore::V1_1::ISurfaceFlingerConfigs; |
Peiyong Lin | 2b3f826 | 2018-07-20 16:03:46 -0700 | [diff] [blame] | 34 | |
| 35 | struct 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 Lin | 2b3f826 | 2018-07-20 16:03:46 -0700 | [diff] [blame] | 52 | }; |
| 53 | |
| 54 | } // namespace implementation |
Sundong Ahn | e64a228 | 2019-02-22 11:52:42 +0900 | [diff] [blame] | 55 | } // namespace V1_1 |
Peiyong Lin | 2b3f826 | 2018-07-20 16:03:46 -0700 | [diff] [blame] | 56 | } // namespace configstore |
| 57 | } // namespace hardware |
| 58 | } // namespace android |
| 59 | |
Sundong Ahn | e64a228 | 2019-02-22 11:52:42 +0900 | [diff] [blame] | 60 | #endif // ANDROID_HARDWARE_CONFIGSTORE_V1_1_SURFACEFLINGERCONFIGS_H |