diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-02-29 22:04:02 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-03-07 19:22:47 +0100 |
commit | 01b3f327df2dc30d847bd335ccce12eaec2dfd39 (patch) | |
tree | b78689ed59c6a5b4438e9f6f8e21d395c78061e1 /plugingui/pixelbuffer.h | |
parent | a65278c7bc9c0dbca8a74db09fd0aebf1c26ef28 (diff) |
Move pixel buffer render code from Window to PixelBuffer for easier testing/benchmarking.
Diffstat (limited to 'plugingui/pixelbuffer.h')
-rw-r--r-- | plugingui/pixelbuffer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/pixelbuffer.h b/plugingui/pixelbuffer.h index 499940d..81921e5 100644 --- a/plugingui/pixelbuffer.h +++ b/plugingui/pixelbuffer.h @@ -29,6 +29,9 @@ #include "colour.h" #include <cstddef> +#include <vector> + +#include "guievent.h" namespace GUI { @@ -46,6 +49,8 @@ public: void writeLine(std::size_t x, std::size_t y, const std::uint8_t* line, std::size_t len); + Rect updateBuffer(std::vector<class PixelBufferAlpha*>& pixel_buffers); + std::uint8_t* buf{nullptr}; std::size_t width{0}; std::size_t height{0}; |