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 127 of file RecorderTest.cpp.
127 {
129
133 recorder.imageInfo().height() > 0);
134}
◆ 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
101#if defined(SK_RESOLVE_FILTERS_BEFORE_RESTORE)
103#else
105#endif
106 }
108
109 {
112
113
117
120
122 }
124}
constexpr SkColor SK_ColorGREEN
@ kFast_SrcRectConstraint
sample outside bounds; faster
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
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
69 paint.setShader(SkShaders::Empty());
70
72 {
75 recorder.saveLayer(&bounds, &
paint);
77 }
79}
Optional< SkRect > bounds
◆ kRecordTypes