blob: f52515813aee5a0d83c73104beb51c4f6828686b [file] [log] [blame]
Hal Canary27ecd862017-03-21 14:00:35 -07001/*
2 * Copyright 2017 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 "Resources.h"
9#include "SkBlurMaskFilter.h"
10#include "SkCanvas.h"
11#include "SkImageSource.h"
12#include "SkSurface.h"
13#include "Test.h"
14
15DEF_TEST(skbug_6389, r) {
16 auto s = SkSurface::MakeRasterN32Premul(100, 100);
17 SkPaint p;
18 p.setMaskFilter(SkBlurMaskFilter::Make(SkBlurStyle::kNormal_SkBlurStyle, 5,
19 SkBlurMaskFilter::kHighQuality_BlurFlag));
20 p.setImageFilter(SkImageSource::Make(GetResourceAsImage("mandrill_512.png"), {0, 0, 0, 0},
21 {0, 0, 0, 0}, (SkFilterQuality)0));
22 s->getCanvas()->drawPaint(p);
23}