Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkPngEncoderImpl.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 Google LLC
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 SkPngEncoderImpl_DEFINED
9#define SkPngEncoderImpl_DEFINED
10
12
13#include <memory>
14
15class SkPixmap;
16class SkPngEncoderMgr;
17
19public:
20 // public so it can be called from SkPngEncoder namespace. It should only be made
21 // via SkPngEncoder::Make
22 SkPngEncoderImpl(std::unique_ptr<SkPngEncoderMgr>, const SkPixmap& src);
23 ~SkPngEncoderImpl() override;
24
25protected:
26 bool onEncodeRows(int numRows) override;
27 std::unique_ptr<SkPngEncoderMgr> fEncoderMgr;
28};
29#endif
std::unique_ptr< SkPngEncoderMgr > fEncoderMgr
bool onEncodeRows(int numRows) override