summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-08-22 23:23:22 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-08-22 23:23:22 +0000
commit9c877cd81bf00eec906c39cc231183a043aa52dc (patch)
treee328d1288a2220e7c40716273bfa159376196341
parent5f4a28dc621e7e52882ef0226e3a3517964fe664 (diff)
parent6d9cb1744e8dbaa7304372e8f26df38c20e301e4 (diff)
downloadgs201-android13-qpr1-release.tar.gz
Change-Id: Id24ca598dec07b72aafb1d522c4cf9da33746478
-rw-r--r--.clang-format13
-rw-r--r--libhwc2.1/libresource/ExynosMPPModule.cpp17
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);