vfs: check userland buffers before reading them.
[haiku.git] / src / servers / app / drawing / BitmapDrawingEngine.h
blob11e5b814bd1ba5383fae4c8bd3c8a60bcf9f092c
1 #ifndef BITMAP_DRAWING_ENGINE_H
2 #define BITMAP_DRAWING_ENGINE_H
4 #include "DrawingEngine.h"
5 #include <Region.h>
7 class BitmapHWInterface;
8 class UtilityBitmap;
10 class BitmapDrawingEngine : public DrawingEngine {
11 public:
12 BitmapDrawingEngine(
13 color_space colorSpace = B_RGB32);
14 virtual ~BitmapDrawingEngine();
16 #if DEBUG
17 virtual bool IsParallelAccessLocked() const;
18 #endif
19 virtual bool IsExclusiveAccessLocked() const;
21 status_t SetSize(int32 newWidth, int32 newHeight);
22 UtilityBitmap* ExportToBitmap(int32 width, int32 height,
23 color_space space);
25 private:
26 color_space fColorSpace;
27 BitmapHWInterface* fHWInterface;
28 UtilityBitmap* fBitmap;
29 BRegion fClipping;
32 #endif // BITMAP_DRAWING_ENGINE_H