summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.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 /libs/gui/LayerState.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 'libs/gui/LayerState.cpp')
-rw-r--r--libs/gui/LayerState.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp
index 05c24c5e1a..deb8ea8f7e 100644
--- a/libs/gui/LayerState.cpp
+++ b/libs/gui/LayerState.cpp
@@ -38,7 +38,6 @@ status_t layer_state_t::write(Parcel& output) const
*reinterpret_cast<layer_state_t::matrix22_t *>(
output.writeInplace(sizeof(layer_state_t::matrix22_t))) = matrix;
output.write(crop_legacy);
- output.write(finalCrop_legacy);
output.writeStrongBinder(barrierHandle_legacy);
output.writeStrongBinder(reparentHandle);
output.writeUint64(frameNumber_legacy);
@@ -99,7 +98,6 @@ status_t layer_state_t::read(const Parcel& input)
return BAD_VALUE;
}
input.read(crop_legacy);
- input.read(finalCrop_legacy);
barrierHandle_legacy = input.readStrongBinder();
reparentHandle = input.readStrongBinder();
frameNumber_legacy = input.readUint64();
@@ -248,10 +246,6 @@ void layer_state_t::merge(const layer_state_t& other) {
barrierGbp_legacy = other.barrierGbp_legacy;
frameNumber_legacy = other.frameNumber_legacy;
}
- if (other.what & eFinalCropChanged_legacy) {
- what |= eFinalCropChanged_legacy;
- finalCrop_legacy = other.finalCrop_legacy;
- }
if (other.what & eOverrideScalingModeChanged) {
what |= eOverrideScalingModeChanged;
overrideScalingMode = other.overrideScalingMode;