blob: dfe83a2b821607465e1e0ccbecf212a8d16c5d99 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
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.com8a1c16f2008-12-17 15:59:43 +00008#ifndef SkBitmap_RLEPixels_DEFINED
9#define SkBitmap_RLEPixels_DEFINED
10
11#include "SkChunkAlloc.h"
12
13class SkBitmap_RLEPixels {
14public:
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
21private:
22 SkChunkAlloc fChunk;
23 uint8_t** fYPtrs;
24};
25
26#endif