From 8db101095526c49a58fd54bfb9d3501ea5351027 Mon Sep 17 00:00:00 2001 From: Ady Abraham Date: Mon, 15 Mar 2021 17:19:23 -0700 Subject: SurfaceFlinger: remove SurfaceControl level vsyncId setting FrameTimelineInfo can be set on the entire transaction, or for an individual SurfaceControl. Later in the code the FrameTimelineInfo is unified based on the most recent vsyncId. For this reason we are removing the setting of a FrameTimelineInfo on a SurfaceControl and instead we use the transaction's one. Test: adb shell /data/nativetest64/SurfaceFlinger_test/SurfaceFlinger_test Bug: 181978893 Bug: 169901895 Change-Id: Id4a8e46d57fbda66f6d478be82313482053dce20 --- libs/gui/LayerState.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'libs/gui/LayerState.cpp') diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index 7a18ca61fe..a84e741482 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -62,7 +62,6 @@ layer_state_t::layer_state_t() shouldBeSeamless(true), fixedTransformHint(ui::Transform::ROT_INVALID), frameNumber(0), - frameTimelineInfo(), autoRefresh(false), releaseBufferListener(nullptr) { matrix.dsdx = matrix.dtdy = 1.0f; @@ -151,7 +150,6 @@ status_t layer_state_t::write(Parcel& output) const SAFE_PARCEL(output.writeBool, shouldBeSeamless); SAFE_PARCEL(output.writeUint32, fixedTransformHint); SAFE_PARCEL(output.writeUint64, frameNumber); - SAFE_PARCEL(frameTimelineInfo.write, output); SAFE_PARCEL(output.writeBool, autoRefresh); SAFE_PARCEL(output.writeStrongBinder, IInterface::asBinder(releaseBufferListener)); @@ -274,7 +272,6 @@ status_t layer_state_t::read(const Parcel& input) SAFE_PARCEL(input.readUint32, &tmpUint32); fixedTransformHint = static_cast(tmpUint32); SAFE_PARCEL(input.readUint64, &frameNumber); - SAFE_PARCEL(frameTimelineInfo.read, input); SAFE_PARCEL(input.readBool, &autoRefresh); tmpBinder = nullptr; @@ -543,10 +540,6 @@ void layer_state_t::merge(const layer_state_t& other) { what |= eFrameNumberChanged; frameNumber = other.frameNumber; } - if (other.what & eFrameTimelineInfoChanged) { - what |= eFrameTimelineInfoChanged; - frameTimelineInfo.merge(other.frameTimelineInfo); - } if (other.what & eAutoRefreshChanged) { what |= eAutoRefreshChanged; autoRefresh = other.autoRefresh; -- cgit v1.2.3-59-g8ed1b