summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/LayerRejecter.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2018-08-23 08:35:19 -0700
committer Vishnu Nair <vishnun@google.com> 2018-08-29 08:40:11 -0700
commitdcce0e2462c9bd0b6ac0db3f95c43cd2b9222eb2 (patch)
tree961fb7b53328565838643079261198842cd64ba4 /services/surfaceflinger/LayerRejecter.cpp
parent27fcf48f147007f78cf70e57b7a4d495519c674e (diff)
SF: Remove setFinalCrop impl 2/2
setFinalCrop functionality is reimplemented by creating a new bounds layer and applying a crop on this layer. see ag/4625718 Test: mmma frameworks/native/services/surfaceflinger/tests/ && \ mmma frameworks/native/libs/gui/tests/ && adb sync data && \ adb shell /data/nativetest64/libgui_test/libgui_test && \ adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest && \ adb shell /data/nativetest64/SurfaceFlinger_test/SurfaceFlinger_test && \ adb shell /data/nativetest64/SurfaceParcelable_test/SurfaceParcelable_test && \ adb shell /data/nativetest64/sffakehwc_test/sffakehwc_test && \ echo "ALL TESTS PASSED" Change-Id: I9be511c07a3351a2947afb2beed10ce2a462b635
Diffstat (limited to 'services/surfaceflinger/LayerRejecter.cpp')
-rw-r--r--services/surfaceflinger/LayerRejecter.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/services/surfaceflinger/LayerRejecter.cpp b/services/surfaceflinger/LayerRejecter.cpp
index 136cdc03f7..72abea8b2d 100644
--- a/services/surfaceflinger/LayerRejecter.cpp
+++ b/services/surfaceflinger/LayerRejecter.cpp
@@ -90,11 +90,6 @@ bool LayerRejecter::reject(const sp<GraphicBuffer>& buf, const BufferItem& item)
mCurrent.crop_legacy = mFront.requestedCrop_legacy;
mRecomputeVisibleRegions = true;
}
- if (mFront.finalCrop_legacy != mFront.requestedFinalCrop_legacy) {
- mFront.finalCrop_legacy = mFront.requestedFinalCrop_legacy;
- mCurrent.finalCrop_legacy = mFront.requestedFinalCrop_legacy;
- mRecomputeVisibleRegions = true;
- }
}
ALOGD_IF(DEBUG_RESIZE,