diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2006-06-16 09:49:06 -0700 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2006-06-16 09:49:06 -0700 |
commit | 334d2203d35c27e0c0d73226ad8a58360c8b36bb (patch) | |
tree | 54f9d39bd6c3a2b6f0469887070b1d1b871ae4ce /t_composite.c | |
parent | b99c20783f3d77077eef2af18960db1a68d0dffd (diff) |
Add an option "--minimalrendering" which suppresses the copying of offscreen
rendering results to the window, which reduces the runtime of the blend tests by
10.2% +/- 6.2% on my system. The copy remains on by default because I think it
can be useful.
Diffstat (limited to 't_composite.c')
-rw-r--r-- | t_composite.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/t_composite.c b/t_composite.c index ea03f8d..fd73eec 100644 --- a/t_composite.c +++ b/t_composite.c @@ -51,10 +51,8 @@ composite_test(Display *dpy, picture_info *win, picture_info *dst, int op, win_width, win_height); } get_pixel(dpy, dst, 0, 0, &tested); - /* Copy the output to the window, so the user sees something visual. */ - if (win != dst) - XRenderComposite(dpy, PictOpSrc, dst->pict, 0, win->pict, 0, 0, - 0, 0, 0, 0, win_width, win_height); + copy_pict_to_win(dpy, dst, win); + if (componentAlpha) { pa.component_alpha = FALSE; XRenderChangePicture(dpy, mask_color->pict, CPComponentAlpha, |