1 // BitmapBuffer.h 2 3 #ifndef BITMAP_BUFFER_H 4 #define BITMAP_BUFFER_H 5 6 #include "RenderingBuffer.h" 7 8 class ServerBitmap; 9 10 class BitmapBuffer : public RenderingBuffer { 11 public: 12 BitmapBuffer(ServerBitmap* bitmap); 13 virtual ~BitmapBuffer(); 14 15 virtual status_t InitCheck() const; 16 17 virtual color_space ColorSpace() const; 18 virtual void* Bits() const; 19 virtual uint32 BytesPerRow() const; 20 virtual uint32 Width() const; 21 virtual uint32 Height() const; 22 23 // BitmapBuffer 24 const ServerBitmap* Bitmap() const 25 { return fBitmap; } 26 private: 27 28 ServerBitmap* fBitmap; 29 }; 30 31 #endif // BITMAP_BUFFER_H 32