diff options
Diffstat (limited to 'Libraries/LibGfx/ShareableBitmap.cpp')
-rw-r--r-- | Libraries/LibGfx/ShareableBitmap.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Libraries/LibGfx/ShareableBitmap.cpp b/Libraries/LibGfx/ShareableBitmap.cpp index db73b59bc2..606c857cce 100644 --- a/Libraries/LibGfx/ShareableBitmap.cpp +++ b/Libraries/LibGfx/ShareableBitmap.cpp @@ -28,6 +28,7 @@ #include <LibGfx/Bitmap.h> #include <LibGfx/ShareableBitmap.h> #include <LibIPC/Decoder.h> +#include <LibIPC/Encoder.h> namespace Gfx { @@ -40,6 +41,14 @@ ShareableBitmap::ShareableBitmap(const Bitmap& bitmap) namespace IPC { +bool encode(Encoder& encoder, const Gfx::ShareableBitmap& shareable_bitmap) +{ + encoder << shareable_bitmap.shbuf_id(); + encoder << shareable_bitmap.width(); + encoder << shareable_bitmap.height(); + return true; +} + bool decode(Decoder& decoder, Gfx::ShareableBitmap& shareable_bitmap) { i32 shbuf_id = 0; |