Flutter Engine
The Flutter Engine
Functions
Skbug6389.cpp File Reference
#include "include/core/SkBlurTypes.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkMaskFilter.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkSamplingOptions.h"
#include "include/core/SkSurface.h"
#include "include/effects/SkImageFilters.h"
#include "tests/Test.h"
#include "tools/DecodeUtils.h"

Go to the source code of this file.

Functions

 DEF_TEST (skbug_6389, r)
 

Function Documentation

◆ DEF_TEST()

DEF_TEST ( skbug_6389  ,
 
)

Definition at line 20 of file Skbug6389.cpp.

20 {
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
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)