From 6f4f860ce3c6a569b15dce17b8d459636c936993 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 27 Mar 2015 14:39:00 +0000 Subject: Add some debug round thumbnail creation More debugging of thumbnail creation as it appears to be involved in a number of recently reported crashes on RISC OS. --- desktop/browser_history.c | 1 + desktop/thumbnail.c | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/browser_history.c b/desktop/browser_history.c index dc04a16c1..1991bf9a1 100644 --- a/desktop/browser_history.c +++ b/desktop/browser_history.c @@ -524,6 +524,7 @@ nserror browser_window_history_add(struct browser_window *bw, /* Thumbnailing failed. Ignore it * silently but clean up bitmap. */ + LOG(("Thumbnail bitmap creation failed")); bitmap_destroy(bitmap); bitmap = NULL; } diff --git a/desktop/thumbnail.c b/desktop/thumbnail.c index 1011adc1f..d7aed007a 100644 --- a/desktop/thumbnail.c +++ b/desktop/thumbnail.c @@ -67,8 +67,11 @@ bool thumbnail_redraw(struct hlcache_handle *content, assert(content); - if (ctx->plot->option_knockout) + LOG(("Content %p %dx%d ctx:%p", content, width, height, ctx)); + + if (ctx->plot->option_knockout) { knockout_plot_start(ctx, &new_ctx); + } /* Set clip rectangle to required thumbnail size */ clip.x0 = 0; @@ -99,8 +102,9 @@ bool thumbnail_redraw(struct hlcache_handle *content, /* Render the content */ plot_ok &= content_redraw(content, &data, &clip, &new_ctx); - if (ctx->plot->option_knockout) + if (ctx->plot->option_knockout) { knockout_plot_end(); + } return plot_ok; } -- cgit v1.2.3