blob: c83bc69e7eda8e055d477101ce0e7ed1188ef09e [file] [log] [blame]
reed@android.com8a1c16f2008-12-17 15:59:43 +00001#ifndef SkBitmap_RLEPixels_DEFINED
2#define SkBitmap_RLEPixels_DEFINED
3
4#include "SkChunkAlloc.h"
5
6class SkBitmap_RLEPixels {
7public:
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
14private:
15 SkChunkAlloc fChunk;
16 uint8_t** fYPtrs;
17};
18
19#endif