C++ Image API: introduce the SharedPixelBuffer

This commit is contained in:
Olivier Goffart 2023-03-20 13:24:40 +01:00 committed by Olivier Goffart
parent be47c8464c
commit ef7fb6422a
5 changed files with 136 additions and 41 deletions

View file

@ -230,8 +230,7 @@ public:
///
/// The stride is the amount of pixels between two lines in the buffer.
/// It is must be at least as large as the width of the window.
void render(std::span<slint::cbindgen_private::Rgb8Pixel> buffer,
std::size_t pixel_stride) const
void render(std::span<slint::Rgb8Pixel> buffer, std::size_t pixel_stride) const
{
cbindgen_private::slint_software_renderer_render_rgb8(inner, buffer.data(), buffer.size(),
pixel_stride);