Flutter Engine
The Flutter Engine
crbug_899512.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2018 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "gm/gm.h"
17#include "include/core/SkRect.h"
18
19DEF_SIMPLE_GM(crbug_899512, canvas, 520, 520) {
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
Definition: color_source.cc:38
DEF_SIMPLE_GM(crbug_899512, canvas, 520, 520)
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