Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
crbug_899512.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkBlurTypes.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkMaskFilter.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRect.h"

Go to the source code of this file.

Functions

 DEF_SIMPLE_GM (crbug_899512, canvas, 520, 520)
 

Function Documentation

◆ DEF_SIMPLE_GM()

DEF_SIMPLE_GM ( crbug_899512  ,
canvas  ,
520  ,
520   
)

Definition at line 19 of file crbug_899512.cpp.

19 {
20 // comment this line below to solve the problem
22 matrix.setAll(-1, 0, 220, 0, 1, 0, 0, 0, 1);
23 canvas->concat(matrix);
25 paint.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, 6.2735f, false));
27 canvas->drawRect(SkRect::MakeXYWH(0, 10, 200, 200), paint);
28}
@ kSrcIn
r = s * da
@ kNormal_SkBlurStyle
fuzzy inside and outside
Definition SkBlurTypes.h:12
constexpr SkColor SK_ColorBLACK
Definition SkColor.h:103
static sk_sp< SkColorFilter > Blend(const SkColor4f &c, sk_sp< SkColorSpace >, SkBlendMode mode)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
const Paint & paint
unsigned useCenter Optional< SkMatrix > matrix
Definition SkRecords.h:258
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
Definition SkRect.h:659