Flutter Engine
The Flutter Engine
third_party
skia
src
image
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
11
#include "
include/core/SkImageGenerator.h
"
12
#include "
include/core/SkMatrix.h
"
13
#include "
include/core/SkPaint.h
"
14
#include "
include/core/SkPicture.h
"
15
#include "
include/core/SkRefCnt.h
"
16
#include "
include/core/SkSurfaceProps.h
"
17
#include "
src/base/SkTLazy.h
"
18
19
#include <cstddef>
20
21
struct
SkImageInfo
;
22
23
class
SkPictureImageGenerator
:
public
SkImageGenerator
{
24
public
:
25
SkPictureImageGenerator
(
const
SkImageInfo
&,
sk_sp<SkPicture>
,
const
SkMatrix
*,
26
const
SkPaint
*,
const
SkSurfaceProps
&);
27
28
protected
:
29
bool
onGetPixels
(
const
SkImageInfo
&,
void
* pixels,
size_t
rowBytes,
const
Options
&)
override
;
30
31
private
:
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
SkImageGenerator.h
SkMatrix.h
SkPaint.h
SkPicture.h
SkRefCnt.h
SkSurfaceProps.h
SkTLazy.h
SkImageGenerator
Definition:
SkImageGenerator.h:28
SkImage_Picture
Definition:
SkImage_Picture.h:28
SkMatrix
Definition:
SkMatrix.h:54
SkPaint
Definition:
SkPaint.h:44
SkPictureImageGenerator
Definition:
SkPictureImageGenerator.h:23
SkPictureImageGenerator::onGetPixels
bool onGetPixels(const SkImageInfo &, void *pixels, size_t rowBytes, const Options &) override
Definition:
SkPictureImageGenerator.cpp:81
SkPictureImageGenerator::SkPictureImageGenerator
SkPictureImageGenerator(const SkImageInfo &, sk_sp< SkPicture >, const SkMatrix *, const SkPaint *, const SkSurfaceProps &)
Definition:
SkPictureImageGenerator.cpp:63
SkSurfaceProps
Definition:
SkSurfaceProps.h:53
SkTLazy< SkPaint >
sk_sp< SkPicture >
SkImageGenerator::Options
Definition:
SkImageGenerator.h:129
SkImageInfo
Definition:
SkImageInfo.h:208
Generated on Sun Jun 23 2024 21:56:29 for Flutter Engine by
1.9.4