summaryrefslogtreecommitdiff
path: root/test/pdf_pointer_bench.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/pdf_pointer_bench.zig')
-rw-r--r--test/pdf_pointer_bench.zig10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/pdf_pointer_bench.zig b/test/pdf_pointer_bench.zig
index d6cf0e19..359d2fc1 100644
--- a/test/pdf_pointer_bench.zig
+++ b/test/pdf_pointer_bench.zig
@@ -111,10 +111,12 @@ const Run = struct {
}
fn observe(run: *Run, surface: *const pardes.Surface) void {
- for (surface.images.items) |place| {
- run.visual = mix(run.visual, [_]u64{ place.pane, place.x, place.y, place.w, place.h, place.native.page, place.iw, place.ih });
- if (place.native.geometry) |g| run.visual = mix(run.visual, [_]u64{ g.src.x, g.src.y, g.src.w, g.src.h, g.dst.x, g.dst.y, g.dst.w, g.dst.h });
- run.visual = std.hash.Wyhash.hash(run.visual, place.rgba);
+ for (surface.placements.items) |place| {
+ run.visual = mix(run.visual, [_]u64{ place.pane, place.dst.x, place.dst.y, place.dst.w, place.dst.h, place.raster.w, place.raster.h });
+ const g = place.src;
+ run.visual = mix(run.visual, [_]u64{ g.x, g.y, g.w, g.h });
+ if (place.at) |at| run.visual = mix(run.visual, [_]u64{ at.x, at.y, at.w, at.h });
+ run.visual = std.hash.Wyhash.hash(run.visual, place.raster.bytes());
}
}
};