Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
SkSurfaceProps
Definition
SkSurfaceProps.h:53
SkTLazy
Definition
SkTLazy.h:20
sk_sp
Definition
SkRefCnt.h:220
SkImageGenerator::Options
Definition
SkImageGenerator.h:129
SkImageInfo
Definition
SkImageInfo.h:208
Generated on Fri Apr 26 2024 06:17:22 for Flutter Engine by
1.9.8