Skia
2D Graphics Library
SkPngChunkReader.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkPngChunkReader_DEFINED
9 #define SkPngChunkReader_DEFINED
10 
11 #include "include/core/SkRefCnt.h"
12 #include "include/core/SkTypes.h"
13 
21 class SkPngChunkReader : public SkRefCnt {
22 public:
43  virtual bool readChunk(const char tag[], const void* data, size_t length) = 0;
44 };
45 #endif // SkPngChunkReader_DEFINED
SkRefCnt
Definition: SkRefCnt.h:118
SkTypes.h
SkPngChunkReader
SkPngChunkReader.
Definition: SkPngChunkReader.h:21
SkRefCnt.h
SkPngChunkReader::readChunk
virtual bool readChunk(const char tag[], const void *data, size_t length)=0
This will be called by the decoder when it sees an unknown chunk.