[librsvg: 3/5] Fix the surface_from_pixbuf benchmark
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 3/5] Fix the surface_from_pixbuf benchmark
- Date: Mon, 7 Jun 2021 18:55:57 +0000 (UTC)
commit 8e387c8d8711604286556e54078d580c174e21f6
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Jun 7 11:48:44 2021 -0500
Fix the surface_from_pixbuf benchmark
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/542>
benches/surface_from_pixbuf.rs | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/benches/surface_from_pixbuf.rs b/benches/surface_from_pixbuf.rs
index a6f56608..72bdc2a1 100644
--- a/benches/surface_from_pixbuf.rs
+++ b/benches/surface_from_pixbuf.rs
@@ -16,7 +16,14 @@ fn bench_surface_from_pixbuf(c: &mut Criterion) {
// Fill the surface with interesting data
for y in 0..pixbuf.get_width() {
for x in 0..pixbuf.get_height() {
- pixbuf.put_pixel(x, y, x as u8, y as u8, x.max(y) as u8, 0xff);
+ pixbuf.put_pixel(
+ x as u32,
+ y as u32,
+ x as u8,
+ y as u8,
+ x.max(y) as u8,
+ 0xff,
+ );
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]