diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-08-22 23:22:35 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-08-22 23:22:35 +0000 |
commit | 53aa2ba83abd5b3e1ced1441c760cbaee15920d4 (patch) | |
tree | e328d1288a2220e7c40716273bfa159376196341 | |
parent | d1688feacd05549da5b04e7a0a805b48863d6c01 (diff) | |
parent | 6d9cb1744e8dbaa7304372e8f26df38c20e301e4 (diff) | |
download | gs201-android13-d4-release.tar.gz |
Snap for 8977768 from 6d9cb1744e8dbaa7304372e8f26df38c20e301e4 to tm-d4-releaseandroid-13.0.0_r48android-13.0.0_r47android-13.0.0_r46android13-d4-s2-releaseandroid13-d4-s1-releaseandroid13-d4-release
Change-Id: Iafd14cb88691b4194b83dec4935dce44af67ee23
-rw-r--r-- | .clang-format | 13 | ||||
-rw-r--r-- | libhwc2.1/libresource/ExynosMPPModule.cpp | 17 |
2 files changed, 21 insertions, 9 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..03af56d --- /dev/null +++ b/.clang-format @@ -0,0 +1,13 @@ +BasedOnStyle: Google + +AccessModifierOffset: -4 +AlignOperands: false +AllowShortFunctionsOnASingleLine: Inline +AlwaysBreakBeforeMultilineStrings: false +ColumnLimit: 100 +CommentPragmas: NOLINT:.* +ConstructorInitializerIndentWidth: 6 +ContinuationIndentWidth: 8 +IndentWidth: 4 +PenaltyBreakBeforeFirstCallParameter: 100000 +SpacesBeforeTrailingComments: 1 diff --git a/libhwc2.1/libresource/ExynosMPPModule.cpp b/libhwc2.1/libresource/ExynosMPPModule.cpp index 35ea0e3..3d9e4af 100644 --- a/libhwc2.1/libresource/ExynosMPPModule.cpp +++ b/libhwc2.1/libresource/ExynosMPPModule.cpp @@ -22,11 +22,11 @@ using namespace gs201; -ExynosMPPModule::ExynosMPPModule(ExynosResourceManager* resourceManager, - uint32_t physicalType, uint32_t logicalType, const char *name, - uint32_t physicalIndex, uint32_t logicalIndex, uint32_t preAssignInfo) - : gs101::ExynosMPPModule(resourceManager, physicalType, logicalType, name, - physicalIndex, logicalIndex, preAssignInfo) {} +ExynosMPPModule::ExynosMPPModule(ExynosResourceManager *resourceManager, uint32_t physicalType, + uint32_t logicalType, const char *name, uint32_t physicalIndex, + uint32_t logicalIndex, uint32_t preAssignInfo) + : gs101::ExynosMPPModule(resourceManager, physicalType, logicalType, name, physicalIndex, + logicalIndex, preAssignInfo) {} ExynosMPPModule::~ExynosMPPModule() {} @@ -43,19 +43,18 @@ bool checkSpecificRestriction(const ExynosDisplay &display, const uint32_t refresh_rate = display.getBtsRefreshRate(); if (refresh_rate >= 90) { VendorGraphicBufferMeta gmeta(src.bufferHandle); - if (src.fullWidth == 3840 && src.w >= 3584 && src.fullHeight >= 2160 && - src.h >= 1600 && isFormatYUV(gmeta.format)) { + if (src.fullWidth == 3840 && src.w >= 3584 && src.fullHeight >= 2160 && src.h >= 1600 && + isFormatYUV(gmeta.format)) { return true; } } - return false; } int64_t ExynosMPPModule::isSupported(ExynosDisplay &display, struct exynos_image &src, struct exynos_image &dst) { - if (checkSpecificRestriction(display, src)) { + if (mPhysicalType < MPP_DPP_NUM && checkSpecificRestriction(display, src)) { return -eMPPSatisfiedRestriction; } return ExynosMPP::isSupported(display, src, dst); |