From dcce0e2462c9bd0b6ac0db3f95c43cd2b9222eb2 Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Thu, 23 Aug 2018 08:35:19 -0700 Subject: 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 --- libs/gui/SurfaceComposerClient.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'libs/gui/SurfaceComposerClient.cpp') diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index b8465e37a6..f913977544 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -353,18 +353,6 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setCrop_ return *this; } -SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setFinalCrop_legacy( - const sp& sc, const Rect& crop) { - layer_state_t* s = getLayerState(sc); - if (!s) { - mStatus = BAD_INDEX; - return *this; - } - s->what |= layer_state_t::eFinalCropChanged_legacy; - s->finalCrop_legacy = crop; - return *this; -} - SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::deferTransactionUntil_legacy(const sp& sc, const sp& handle, -- cgit v1.2.3-59-g8ed1b