Go to the source code of this file.
◆ DEF_SIMPLE_GM_CAN_FAIL()
DEF_SIMPLE_GM_CAN_FAIL |
( |
clipped_thinrect |
, |
|
|
canvas |
, |
|
|
errorMsg |
, |
|
|
256 |
, |
|
|
256 |
|
|
) |
| |
Definition at line 153 of file thinrects.cpp.
153 {
154 auto zoomed = canvas->makeSurface(canvas->imageInfo().makeWH(10, 10));
155 if (!zoomed) {
156 errorMsg->printf("makeSurface not supported");
158 }
159 auto zoomedCanvas = zoomed->getCanvas();
160
163 p.setAntiAlias(
true);
165 zoomedCanvas->save();
168 zoomedCanvas->restore();
169
170
171
172 auto img = zoomed->makeImageSnapshot();
175}
constexpr SkColor SK_ColorRED
@ kFill_Style
set to fill geometry
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)