Go to the source code of this file.
◆ DEF_SIMPLE_GM()
DEF_SIMPLE_GM |
( |
crbug_1174354 |
, |
|
|
canvas |
, |
|
|
70 |
, |
|
|
250 |
|
|
) |
| |
Definition at line 47 of file crbug_1174354.cpp.
47 {
48
49
50
51
52
57}
static void draw_bg_blur(SkCanvas *canvas, SkIRect rect, float sigma)
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
◆ draw_bg_blur()
Definition at line 15 of file crbug_1174354.cpp.
15 {
16
17
18
22 float cx = (
rect.left() +
rect.right() )/2.f;
23 float cy = (
rect.top() +
rect.bottom())/2.f;
25 cy,
27 nullptr,
28 3,
30 0,
31 45,
32 0,
33 nullptr);
35 paint.setShader(std::move(g));
37
45}
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawRect(const SkRect &rect, const SkPaint &paint)
static sk_sp< SkShader > MakeSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, SkScalar startAngle, SkScalar endAngle, uint32_t flags, const SkMatrix *localMatrix)
static sk_sp< SkImageFilter > Blur(SkScalar sigmaX, SkScalar sigmaY, SkTileMode tileMode, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
sk_sp< SkBlender > blender SkRect rect
PODArray< SkColor > colors
const SkImageFilter * fBackdrop
static SkRect Make(const SkISize &size)
SkRect makeOutset(float dx, float dy) const