diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-02-22 01:58:19 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-02-22 01:58:19 +0000 |
commit | 3d9a1198db571973e2760d6f27c771cbe31c844b (patch) | |
tree | 5a306a7fdf135f63fa1bd031924fb18edc5ecc2b /riscos/bitmap.h | |
parent | 01cc7987c7af26c70269c81e9d344fd2e91a8793 (diff) | |
download | netsurf-3d9a1198db571973e2760d6f27c771cbe31c844b.tar.gz netsurf-3d9a1198db571973e2760d6f27c771cbe31c844b.tar.bz2 |
[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
Diffstat (limited to 'riscos/bitmap.h')
-rw-r--r-- | riscos/bitmap.h | 9 |
1 files changed, 5 insertions, 4 deletions
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 */ |