epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2011 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 8 | #ifndef SkBitmap_RLEPixels_DEFINED |
| 9 | #define SkBitmap_RLEPixels_DEFINED |
| 10 | |
| 11 | #include "SkChunkAlloc.h" |
| 12 | |
| 13 | class SkBitmap_RLEPixels { |
| 14 | public: |
| 15 | SkBitmap_RLEPixels(int width, int height); |
| 16 | ~SkBitmap_RLEPixels(); |
| 17 | |
| 18 | uint8_t* yptrs() const { return fYPtrs; } |
| 19 | uint8_t* allocChunk(size_t chunk); |
| 20 | |
| 21 | private: |
| 22 | SkChunkAlloc fChunk; |
| 23 | uint8_t** fYPtrs; |
| 24 | }; |
| 25 | |
| 26 | #endif |