Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
gm
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
"
9
#include "
include/core/SkBlendMode.h
"
10
#include "
include/core/SkBlurTypes.h
"
11
#include "
include/core/SkCanvas.h
"
12
#include "
include/core/SkColor.h
"
13
#include "
include/core/SkColorFilter.h
"
14
#include "
include/core/SkMaskFilter.h
"
15
#include "
include/core/SkMatrix.h
"
16
#include "
include/core/SkPaint.h
"
17
#include "
include/core/SkRect.h
"
18
19
DEF_SIMPLE_GM
(crbug_899512, canvas, 520, 520) {
20
// comment this line below to solve the problem
21
SkMatrix
matrix;
22
matrix.setAll(-1, 0, 220, 0, 1, 0, 0, 0, 1);
23
canvas->concat(matrix);
24
SkPaint
paint
;
25
paint
.setMaskFilter(
SkMaskFilter::MakeBlur
(
kNormal_SkBlurStyle
, 6.2735f,
false
));
26
paint
.setColorFilter(
SkColorFilters::Blend
(
SK_ColorBLACK
,
SkBlendMode::kSrcIn
));
27
canvas->drawRect(
SkRect::MakeXYWH
(0, 10, 200, 200),
paint
);
28
}
SkBlendMode.h
SkBlendMode::kSrcIn
@ kSrcIn
r = s * da
SkBlurTypes.h
kNormal_SkBlurStyle
@ kNormal_SkBlurStyle
fuzzy inside and outside
Definition
SkBlurTypes.h:12
SkCanvas.h
SkColorFilter.h
SkColor.h
SK_ColorBLACK
constexpr SkColor SK_ColorBLACK
Definition
SkColor.h:103
SkMaskFilter.h
SkMatrix.h
SkPaint.h
SkRect.h
SkColorFilters::Blend
static sk_sp< SkColorFilter > Blend(const SkColor4f &c, sk_sp< SkColorSpace >, SkBlendMode mode)
Definition
SkBlendModeColorFilter.cpp:89
SkMaskFilter::MakeBlur
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
Definition
SkBlurMaskFilterImpl.cpp:535
SkMatrix
Definition
SkMatrix.h:54
SkPaint
Definition
SkPaint.h:44
paint
const Paint & paint
Definition
color_source.cc:38
gm.h
DEF_SIMPLE_GM
#define DEF_SIMPLE_GM(NAME, CANVAS, W, H)
Definition
gm.h:50
SkRect::MakeXYWH
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
Definition
SkRect.h:659
Generated on Fri Apr 26 2024 06:16:01 for Flutter Engine by
1.9.8