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 virtual bool IsGraphicsMemory() const { return false; } 17 18 virtual color_space ColorSpace() const; 19 virtual void* Bits() const; 20 virtual uint32 BytesPerRow() const; 21 virtual uint32 Width() const; 22 virtual uint32 Height() const; 23 24 // BitmapBuffer 25 const ServerBitmap* Bitmap() const 26 { return fBitmap; } 27 private: 28 29 ServerBitmap* fBitmap; 30 }; 31 32 #endif // BITMAP_BUFFER_H 33