blob: dfe83a2b821607465e1e0ccbecf212a8d16c5d99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkBitmap_RLEPixels_DEFINED
#define SkBitmap_RLEPixels_DEFINED
#include "SkChunkAlloc.h"
class SkBitmap_RLEPixels {
public:
SkBitmap_RLEPixels(int width, int height);
~SkBitmap_RLEPixels();
uint8_t* yptrs() const { return fYPtrs; }
uint8_t* allocChunk(size_t chunk);
private:
SkChunkAlloc fChunk;
uint8_t** fYPtrs;
};
#endif
|