summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-27 14:39:00 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-27 14:39:00 +0000
commit6f4f860ce3c6a569b15dce17b8d459636c936993 (patch)
treec710d1fd6c614e0519d317a89de0551a5c259872 /desktop
parent78663e91110b174c9febd29bb96b4a89f5a295a3 (diff)
downloadnetsurf-6f4f860ce3c6a569b15dce17b8d459636c936993.tar.gz
netsurf-6f4f860ce3c6a569b15dce17b8d459636c936993.tar.bz2
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.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/browser_history.c1
-rw-r--r--desktop/thumbnail.c8
2 files changed, 7 insertions, 2 deletions
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;
}