From 3d9a1198db571973e2760d6f27c771cbe31c844b Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Wed, 22 Feb 2006 01:58:19 +0000 Subject: [project @ 2006-02-22 01:58:19 by rjw] Reduce constant bitmap overhead per reference by moving to a flag word. Allow bitmaps to be reduced back to their raw data to free extra memory in a highly efficient manner. svn path=/import/netsurf/; revision=2089 --- riscos/bitmap.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'riscos/bitmap.h') diff --git a/riscos/bitmap.h b/riscos/bitmap.h index 910c201bb..a113d9b1b 100644 --- a/riscos/bitmap.h +++ b/riscos/bitmap.h @@ -16,10 +16,11 @@ struct osspriteop_area; struct bitmap { int width; int height; - bool opaque; - bool modified; - bool persistent; - bitmap_state state; + + unsigned int state; + + void *private_word; + void (*invalidate)(struct bitmap *bitmap, void *private_word); osspriteop_area *sprite_area; /** Uncompressed data, or NULL */ char *compressed; /** Compressed data, or NULL */ -- cgit v1.2.3