| Index: src/codec/SkExrCodec.h
|
| diff --git a/src/codec/SkExrCodec.h b/src/codec/SkExrCodec.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a5d76271772466714a422e3e8d8b3edf762ecea8
|
| --- /dev/null
|
| +++ b/src/codec/SkExrCodec.h
|
| @@ -0,0 +1,33 @@
|
| +/*
|
| + * Copyright 2016 Google Inc.
|
| + *
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +#ifndef SkExrCodec_DEFINED
|
| +#define SkExrCodec_DEFINED
|
| +
|
| +#include "SkCodec.h"
|
| +#include "SkEncodedFormat.h"
|
| +#include "SkImageInfo.h"
|
| +#include "SkTypes.h"
|
| +
|
| +class SkExrCodec : public SkCodec {
|
| +public:
|
| + static SkCodec* NewFromStream(SkStream*);
|
| + static bool IsExr(const void*, size_t);
|
| +
|
| +protected:
|
| + Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMColor*, int*, int*)
|
| + override;
|
| + SkEncodedFormat onGetEncodedFormat() const override { return kEXR_SkEncodedFormat; }
|
| +
|
| +private:
|
| + SkExrCodec(int width, int height, const SkEncodedInfo&, sk_sp<SkColorSpace>, SkStream*, sk_sp<SkData> data);
|
| +
|
| + sk_sp<SkData> fData;
|
| + typedef SkCodec INHERITED;
|
| +};
|
| +
|
| +#endif
|
|
|