• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  */
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 
yptrs()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
27