Flutter Engine
The Flutter Engine
Skbug6389.cpp
Go to the documentation of this file.
1/*
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
17#include "tests/Test.h"
18#include "tools/DecodeUtils.h"
19
20DEF_TEST(skbug_6389, r) {
22 SkPaint p;
24 p.setImageFilter(SkImageFilters::Image(ToolUtils::GetResourceAsImage("images/mandrill_512.png"),
25 {0, 0, 0, 0},
26 {0, 0, 0, 0},
28 s->getCanvas()->drawPaint(p);
29}
@ kNormal_SkBlurStyle
fuzzy inside and outside
Definition: SkBlurTypes.h:12
DEF_TEST(skbug_6389, r)
Definition: Skbug6389.cpp:20
static sk_sp< SkImageFilter > Image(sk_sp< SkImage > image, const SkRect &srcRect, const SkRect &dstRect, const SkSamplingOptions &sampling)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
struct MyStruct s
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
sk_sp< SkImage > GetResourceAsImage(const char *resource)
Definition: DecodeUtils.h:25
SkSamplingOptions(SkFilterMode::kLinear))
static SkImageInfo MakeN32Premul(int width, int height)