reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 1 | #ifndef SkBitmap_RLEPixels_DEFINED |
2 | #define SkBitmap_RLEPixels_DEFINED | ||||
3 | |||||
4 | #include "SkChunkAlloc.h" | ||||
5 | |||||
6 | class SkBitmap_RLEPixels { | ||||
7 | public: | ||||
8 | SkBitmap_RLEPixels(int width, int height); | ||||
9 | ~SkBitmap_RLEPixels(); | ||||
10 | |||||
11 | uint8_t* yptrs() const { return fYPtrs; } | ||||
12 | uint8_t* allocChunk(size_t chunk); | ||||
13 | |||||
14 | private: | ||||
15 | SkChunkAlloc fChunk; | ||||
16 | uint8_t** fYPtrs; | ||||
17 | }; | ||||
18 | |||||
19 | #endif |