2 * Copyright 2001-2009, Haiku.
3 * Distributed under the terms of the MIT License.
6 * DarkWyrm <bpmagic@columbus.rr.com>
8 #ifndef BITMAP_MANAGER_H
9 #define BITMAP_MANAGER_H
12 #include <GraphicsDefs.h>
19 class ClientMemoryAllocator
;
27 virtual ~BitmapManager();
29 ServerBitmap
* CreateBitmap(ClientMemoryAllocator
* allocator
,
30 HWInterface
& hwInterface
, BRect bounds
,
31 color_space space
, uint32 flags
,
32 int32 bytesPerRow
= -1,
33 int32 screen
= B_MAIN_SCREEN_ID
.id
,
34 uint8
* _allocationFlags
= NULL
);
36 ServerBitmap
* CloneFromClient(area_id clientArea
,
37 int32 areaOffset
, BRect bounds
,
38 color_space space
, uint32 flags
,
39 int32 bytesPerRow
= -1);
41 void BitmapRemoved(ServerBitmap
* bitmap
);
43 void SuspendOverlays();
44 void ResumeOverlays();
52 extern BitmapManager
* gBitmapManager
;
54 #endif /* BITMAP_MANAGER_H */