/* * Copyright (c) 2026, Aliaksandr Kalenik * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include namespace IPC { template<> ErrorOr encode(Encoder& encoder, Gfx::ColorStop const& color_stop) { TRY(encoder.encode(color_stop.color)); TRY(encoder.encode(color_stop.position)); TRY(encoder.encode(color_stop.transition_hint)); return {}; } template<> ErrorOr decode(Decoder& decoder) { auto color = TRY(decoder.decode()); auto position = TRY(decoder.decode()); auto transition_hint = TRY(decoder.decode>()); return Gfx::ColorStop { color, position, transition_hint }; } }