1 #ifndef BITMAP_DRAWING_ENGINE_H 2 #define BITMAP_DRAWING_ENGINE_H 3 4 #include "DrawingEngine.h" 5 #include <Region.h> 6 7 class BitmapHWInterface; 8 class UtilityBitmap; 9 10 class BitmapDrawingEngine : public DrawingEngine { 11 public: 12 BitmapDrawingEngine( 13 color_space colorSpace = B_RGB32); 14 virtual ~BitmapDrawingEngine(); 15 16 #if DEBUG 17 virtual bool IsParallelAccessLocked() const; 18 #endif 19 virtual bool IsExclusiveAccessLocked() const; 20 21 status_t SetSize(int32 newWidth, int32 newHeight); 22 UtilityBitmap* ExportToBitmap(int32 width, int32 height, 23 color_space space); 24 25 private: 26 color_space fColorSpace; 27 BitmapHWInterface* fHWInterface; 28 UtilityBitmap* fBitmap; 29 BRegion fClipping; 30 }; 31 32 #endif // BITMAP_DRAWING_ENGINE_H 33