• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "SkBlurMaskFilter.h"
9 #include "SkCanvas.h"
10 #include "SkColorFilter.h"
11 #include "SkLayerDrawLooper.h"
12 #include "gm.h"
13 
14 DEF_SIMPLE_GM(crbug_899512, canvas, 520, 520) {
15     // comment this line below to solve the problem
16     SkMatrix matrix;
17     matrix.setAll(-1, 0, 220, 0, 1, 0, 0, 0, 1);
18     canvas->concat(matrix);
19     SkPaint paint;
20     paint.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, 6.2735f, false));
21     paint.setColorFilter(SkColorFilter::MakeModeFilter(SK_ColorBLACK, SkBlendMode::kSrcIn));
22     canvas->drawRect(SkRect::MakeXYWH(0, 10, 200, 200), paint);
23 }
24