From b88a81b9d9570c3219dc924c3dd2b424d99ee4c3 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Thu, 23 Jun 2005 17:22:28 +0000 Subject: [project @ 2005-06-23 17:22:28 by rjw] Allow images to be unloaded to disk or compressed in memory. Provide thumbnails in all tree windows (hotlist, history). Optimise the application initialisation times. Part 1 of 2. svn path=/import/netsurf/; revision=1761 --- riscos/bitmap.h | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'riscos/bitmap.h') diff --git a/riscos/bitmap.h b/riscos/bitmap.h index 7a5fbf5c7..2ce8f04a9 100644 --- a/riscos/bitmap.h +++ b/riscos/bitmap.h @@ -1,20 +1,45 @@ /* * This file is part of NetSurf, http://netsurf.sourceforge.net/ * Licensed under the GNU General Public License, - * http://www.opensource.org/licenses/gpl-license + * http://www.opensource.org/licenses/gpl-license * Copyright 2004 James Bursa */ #ifndef _NETSURF_RISCOS_BITMAP_H_ #define _NETSURF_RISCOS_BITMAP_H_ +#include "oslib/osspriteop.h" + struct osspriteop_area; struct bitmap { int width; int height; - bool opaque; - osspriteop_area sprite_area; + bool opaque; + bool modified; + bool persistent; + + osspriteop_area *sprite_area; /** Uncompressed data, or NULL */ + char *compressed; /** Compressed data, or NULL */ + char filename[12]; /** Data filename, or '/0' */ + + struct bitmap *previous; /** Previous bitmap */ + struct bitmap *next; /** Next bitmap */ + }; +struct bitmap *bitmap_create_file(int width, int height, char *file); +void bitmap_initialise_memory(void); +void bitmap_quit(void); +void bitmap_maintain(void); + +/** Whether maintenance of the pool states is needed +*/ +extern bool bitmap_maintenance; + +/** Whether maintenance of the pool is high priority +*/ +extern bool bitmap_maintenance_priority; + + #endif -- cgit v1.2.3