Flutter Engine
The Flutter Engine
Mask_Filter_Methods.cpp
Go to the documentation of this file.
1// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4REG_FIDDLE(Mask_Filter_Methods, 256, 256, false, 0) {
5void draw(SkCanvas* canvas) {
8 canvas->drawRect(SkRect::MakeXYWH(40, 40, 175, 175), paint);
9}
10} // END FIDDLE
REG_FIDDLE(Mask_Filter_Methods, 256, 256, false, 0)
@ kSolid_SkBlurStyle
solid inside, fuzzy outside
Definition: SkBlurTypes.h:13
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void drawRect(const SkRect &rect, const SkPaint &paint)
Definition: SkCanvas.cpp:1673
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
const Paint & paint
Definition: color_source.cc:38
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
Definition: SkRect.h:659