Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f4b8d2f authored by Naseer Ahmed's avatar Naseer Ahmed Committed by Gerrit - the friendly Code Review server
Browse files

gui: Send layer color over binder

The color member of LayerState was not sent over binder.
CRs-Fixed: 1081774

Change-Id: I47049211d8c6ee14f1da9d14b0ded386e121c206
parent ae210717
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -98,9 +98,9 @@ struct layer_state_t {
            sp<IBinder>     handle;
            uint64_t        frameNumber;
            int32_t         overrideScalingMode;
            uint32_t        color;
            // non POD must be last. see write/read
            Region          transparentRegion;
            uint32_t        color;
};

struct ComposerState {
+2 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ status_t layer_state_t::write(Parcel& output) const
    output.writeStrongBinder(handle);
    output.writeUint64(frameNumber);
    output.writeInt32(overrideScalingMode);
    output.writeUint32(color);
    output.write(transparentRegion);
    return NO_ERROR;
}
@@ -70,6 +71,7 @@ status_t layer_state_t::read(const Parcel& input)
    handle = input.readStrongBinder();
    frameNumber = input.readUint64();
    overrideScalingMode = input.readInt32();
    color = input.readUint32();
    input.read(transparentRegion);
    return NO_ERROR;
}