Go to the source code of this file.
◆ COUNT
◆ DEF_TEST() [1/4]
Definition at line 50 of file RecorderTest.cpp.
50 {
53
55
59}
#define REPORTER_ASSERT(r, cond,...)
void apply(const SkRecord &record)
static constexpr SkRect MakeWH(float w, float h)
◆ DEF_TEST() [2/4]
DEF_TEST |
( |
Recorder_boundsOverflow |
, |
|
|
reporter |
|
|
) |
| |
Definition at line 123 of file RecorderTest.cpp.
123 {
125
129 recorder.imageInfo().height() > 0);
130}
◆ DEF_TEST() [3/4]
DEF_TEST |
( |
Recorder_drawImage_takeReference |
, |
|
|
reporter |
|
|
) |
| |
Definition at line 81 of file RecorderTest.cpp.
81 {
82
84 {
88 }
89
90 {
93
94
97
100
102 }
104
105 {
108
109
113
116
118 }
120}
constexpr SkColor SK_ColorGREEN
@ kFast_SrcRectConstraint
sample outside bounds; faster
sk_sp< const SkImage > image
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
SK_API void DrawImageRect(SkCanvas *canvas, const SkImage *image, const SkRect &src, const SkRect &dst, const SkSamplingOptions &sampling={}, const SkPaint *paint=nullptr, SkCanvas::SrcRectConstraint constraint=SkCanvas::kFast_SrcRectConstraint)
static SkImageInfo MakeN32Premul(int width, int height)
◆ DEF_TEST() [4/4]
DEF_TEST |
( |
Recorder_RefLeaking |
, |
|
|
r |
|
|
) |
| |
Definition at line 62 of file RecorderTest.cpp.
62 {
63
64
65
66
70
72 {
77 }
79}
Optional< SkRect > bounds
SK_API sk_sp< SkShader > Empty()
◆ kRecordTypes