aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkCodec_wbmp.h
blob: fece249728e72e1f2d0fcd0700981a84a116a8da (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 2015 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkCodec_wbmp_DEFINED
#define SkCodec_wbmp_DEFINED

#include "SkCodec.h"

class SkWbmpCodec final : public SkCodec {
public:
    static bool IsWbmp(SkStream*);
    static SkCodec* NewFromStream(SkStream*);
protected:
    SkEncodedFormat onGetEncodedFormat() const override;
    Result onGetPixels(const SkImageInfo&, void*, size_t,
                       const Options&, SkPMColor[], int*) override;
private:
    SkWbmpCodec(const SkImageInfo&, SkStream*);
    typedef SkCodec INHERITED;
};

#endif  // SkCodec_wbmp_DEFINED