mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
LibGfx+IPCCompiler: Add IPC encoders for Color and ShareableBitmap
This commit is contained in:
parent
f8e3c8326d
commit
fbda28248a
5 changed files with 19 additions and 7 deletions
|
@ -343,13 +343,7 @@ int main(int argc, char** argv)
|
|||
out() << " stream << endpoint_magic();";
|
||||
out() << " stream << (int)MessageID::" << name << ";";
|
||||
for (auto& parameter : parameters) {
|
||||
if (parameter.type == "Gfx::Color") {
|
||||
out() << " stream << m_" << parameter.name << ".value();";
|
||||
} else if (parameter.type == "Gfx::ShareableBitmap") {
|
||||
out() << " stream << m_" << parameter.name << ".shbuf_id();";
|
||||
out() << " stream << m_" << parameter.name << ".width();";
|
||||
out() << " stream << m_" << parameter.name << ".height();";
|
||||
} else if (parameter.type.starts_with("Optional<")) {
|
||||
if (parameter.type.starts_with("Optional<")) {
|
||||
out() << " stream << m_" << parameter.name << ".has_value();";
|
||||
out() << " if (m_" << parameter.name << ".has_value())";
|
||||
out() << " stream << m_" << parameter.name << ".value();";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue