summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2022-08-19 21:28:17 +0000
committer Vishnu Nair <vishnun@google.com> 2022-08-22 17:42:41 +0000
commitea04b6f71e8be837f288a17c48c3f83f19f95a1e (patch)
tree3c597b63a54c8d24b7ef683a5b4af5ec6d4f8d25 /libs/gui/LayerState.cpp
parenta62797e49af1ffcab35d86930ef988261cc30334 (diff)
SF: Clean up layer state
Remove unused layer states. Bug: 238781169 Test: presubmit Change-Id: I84917bed157a93ec9bfd16d168312ce27ff1765e
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r--libs/gui/LayerState.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp
index bb660854c8..4d5978ccf7 100644
--- a/libs/gui/LayerState.cpp
+++ b/libs/gui/LayerState.cpp
@@ -40,8 +40,6 @@ layer_state_t::layer_state_t()
x(0),
y(0),
z(0),
- w(0),
- h(0),
alpha(0),
flags(0),
mask(0),
@@ -84,8 +82,6 @@ status_t layer_state_t::write(Parcel& output) const
SAFE_PARCEL(output.writeFloat, x);
SAFE_PARCEL(output.writeFloat, y);
SAFE_PARCEL(output.writeInt32, z);
- SAFE_PARCEL(output.writeUint32, w);
- SAFE_PARCEL(output.writeUint32, h);
SAFE_PARCEL(output.writeUint32, layerStack.id);
SAFE_PARCEL(output.writeFloat, alpha);
SAFE_PARCEL(output.writeUint32, flags);
@@ -180,8 +176,6 @@ status_t layer_state_t::read(const Parcel& input)
SAFE_PARCEL(input.readFloat, &x);
SAFE_PARCEL(input.readFloat, &y);
SAFE_PARCEL(input.readInt32, &z);
- SAFE_PARCEL(input.readUint32, &w);
- SAFE_PARCEL(input.readUint32, &h);
SAFE_PARCEL(input.readUint32, &layerStack.id);
SAFE_PARCEL(input.readFloat, &alpha);
@@ -457,11 +451,6 @@ void layer_state_t::merge(const layer_state_t& other) {
what &= ~eRelativeLayerChanged;
z = other.z;
}
- if (other.what & eSizeChanged) {
- what |= eSizeChanged;
- w = other.w;
- h = other.h;
- }
if (other.what & eAlphaChanged) {
what |= eAlphaChanged;
alpha = other.alpha;