summaryrefslogtreecommitdiff
path: root/amiga/options.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-02-24 20:00:51 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-02-24 20:00:51 +0000
commitb517cf331aeb2616e216b1a78cc20d0027b4e0b6 (patch)
tree9c983336568331c5356b3b0d16afdc5204b9314f /amiga/options.h
parent9478f0182887b119ccd08cce059c5e09b5f23d8f (diff)
downloadnetsurf-b517cf331aeb2616e216b1a78cc20d0027b4e0b6.tar.gz
netsurf-b517cf331aeb2616e216b1a78cc20d0027b4e0b6.tar.bz2
option_screen_compositing to enable switching compositing for NetSurf's own
screen on/off. Some experimentation with compositing and simple/smart refresh reveals that simple refresh windows with compositing on for the screen behave the same as smart refresh windows. Smart refresh windows with compositing off use more gfx memory than when compositing is on. Simple refresh windows with compositing off will probably be more memory efficient, as we are using an off-screen bitmap to render the browsing area anyway. However due to this bitmap being re-used over multiple tabs/windows, it does not always reflect what should be on the window, so performing a redraw of damaged areas may be the only option. Need to read damaged regions from layer (probably through struct Region *DamageList) and check on performance vs memory or make the window refresh type configurable. Simple refresh code #ifdefed out for now for further investigation later. svn path=/trunk/netsurf/; revision=13464
Diffstat (limited to 'amiga/options.h')
-rw-r--r--amiga/options.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/amiga/options.h b/amiga/options.h
index bf4f1f24b..b00838e69 100644
--- a/amiga/options.h
+++ b/amiga/options.h
@@ -24,6 +24,7 @@ extern char *option_url_file;
extern char *option_hotlist_file;
extern char *option_use_pubscreen;
extern char *option_modeid;
+extern int option_screen_compositing;
extern int option_cache_bitmaps;
extern char *option_theme;
extern bool option_utf8_clipboard;
@@ -74,6 +75,7 @@ char *option_url_file = 0; \
char *option_hotlist_file = 0; \
char *option_use_pubscreen = 0; \
char *option_modeid = 0; \
+extern int option_screen_compositing = -1; \
int option_cache_bitmaps = 0; \
char *option_theme = 0; \
bool option_utf8_clipboard = false; \
@@ -124,6 +126,7 @@ int option_menu_refresh = 0; \
{ "hotlist_file", OPTION_STRING, &option_hotlist_file }, \
{ "use_pubscreen", OPTION_STRING, &option_use_pubscreen}, \
{ "screen_modeid", OPTION_STRING, &option_modeid}, \
+{ "screen_compositing", OPTION_INTEGER, &option_screen_compositing}, \
{ "cache_bitmaps", OPTION_INTEGER, &option_cache_bitmaps}, \
{ "theme", OPTION_STRING, &option_theme}, \
{ "clipboard_write_utf8", OPTION_BOOL, &option_utf8_clipboard}, \