Flutter Engine
The Flutter Engine
SkPictureImageGenerator.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 SkPictureImageGenerator_DEFINED
9#define SkPictureImageGenerator_DEFINED
10
17#include "src/base/SkTLazy.h"
18
19#include <cstddef>
20
21struct SkImageInfo;
22
24public:
26 const SkPaint*, const SkSurfaceProps&);
27
28protected:
29 bool onGetPixels(const SkImageInfo&, void* pixels, size_t rowBytes, const Options&) override;
30
31private:
32 sk_sp<SkPicture> fPicture;
33 SkMatrix fMatrix;
34 SkTLazy<SkPaint> fPaint;
35 const SkSurfaceProps fProps;
36
37 friend class SkImage_Picture;
38};
39
40#endif
bool onGetPixels(const SkImageInfo &, void *pixels, size_t rowBytes, const Options &) override
SkPictureImageGenerator(const SkImageInfo &, sk_sp< SkPicture >, const SkMatrix *, const SkPaint *, const SkSurfaceProps &)