@@ -180,6 +180,7 @@ status_t layer_state_t::write(Parcel& output) const
180180 SAFE_PARCEL (output.writeParcelableVector , listener.callbackIds );
181181 }
182182 SAFE_PARCEL (output.writeFloat , shadowRadius);
183+ SAFE_PARCEL (output.writeParcelable , borderSettings);
183184 SAFE_PARCEL (output.writeInt32 , frameRateSelectionPriority);
184185 SAFE_PARCEL (output.writeFloat , frameRate);
185186 SAFE_PARCEL (output.writeByte , frameRateCompatibility);
@@ -328,6 +329,8 @@ status_t layer_state_t::read(const Parcel& input)
328329 listeners.emplace_back (listener, callbackIds);
329330 }
330331 SAFE_PARCEL (input.readFloat , &shadowRadius);
332+ SAFE_PARCEL (input.readParcelable , &borderSettings);
333+
331334 SAFE_PARCEL (input.readInt32 , &frameRateSelectionPriority);
332335 SAFE_PARCEL (input.readFloat , &frameRate);
333336 SAFE_PARCEL (input.readByte , &frameRateCompatibility);
@@ -727,6 +730,10 @@ void layer_state_t::merge(const layer_state_t& other) {
727730 what |= eShadowRadiusChanged;
728731 shadowRadius = other.shadowRadius ;
729732 }
733+ if (other.what & eBorderSettingsChanged) {
734+ what |= eBorderSettingsChanged;
735+ borderSettings = other.borderSettings ;
736+ }
730737 if (other.what & eLutsChanged) {
731738 what |= eLutsChanged;
732739 luts = other.luts ;
@@ -881,6 +888,7 @@ uint64_t layer_state_t::diff(const layer_state_t& other) const {
881888 CHECK_DIFF2 (diff, eBackgroundColorChanged, other, bgColor, bgColorDataspace);
882889 if (other.what & eMetadataChanged) diff |= eMetadataChanged;
883890 CHECK_DIFF (diff, eShadowRadiusChanged, other, shadowRadius);
891+ CHECK_DIFF (diff, eBorderSettingsChanged, other, borderSettings);
884892 CHECK_DIFF (diff, eDefaultFrameRateCompatibilityChanged, other, defaultFrameRateCompatibility);
885893 CHECK_DIFF (diff, eFrameRateSelectionPriority, other, frameRateSelectionPriority);
886894 CHECK_DIFF3 (diff, eFrameRateChanged, other, frameRate, frameRateCompatibility,
0 commit comments