blob: ae76e1a260b3972980adef76a446169b71d2c3e9 [file] [log] [blame]
Brian Salomon908bb232018-11-19 10:05:08 -05001/*
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
14DEF_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}