Home | History | Annotate | Download | only in images
      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
     20