Adding SkPictureImageFilter to the fuzzer
BUG=skia: R=senorblanco@google.com, senorblanco@chromium.org, sugoi@google.com Author: sugoi@chromium.org Review URL: https://codereview.chromium.org/140993004 git-svn-id: http://skia.googlecode.com/svn/trunk@13116 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
92b7884e88
commit
7b8d72d892
@ -23,6 +23,7 @@
|
||||
#include "SkMorphologyImageFilter.h"
|
||||
#include "SkOffsetImageFilter.h"
|
||||
#include "SkPerlinNoiseShader.h"
|
||||
#include "SkPictureImageFilter.h"
|
||||
#include "SkRandom.h"
|
||||
#include "SkRectShaderImageFilter.h"
|
||||
#include "SkTileImageFilter.h"
|
||||
@ -173,7 +174,7 @@ static SkImageFilter* make_image_filter(bool canBeNull = true) {
|
||||
|
||||
enum { BICUBIC, MERGE, COLOR, BLUR, MAGNIFIER, XFERMODE, OFFSET, COMPOSE,
|
||||
DISTANT_LIGHT, POINT_LIGHT, SPOT_LIGHT, NOISE, DROP_SHADOW,
|
||||
MORPHOLOGY, BITMAP, DISPLACE, TILE, NUM_FILTERS };
|
||||
MORPHOLOGY, BITMAP, DISPLACE, TILE, PICTURE, NUM_FILTERS };
|
||||
|
||||
switch (R(NUM_FILTERS)) {
|
||||
case BICUBIC:
|
||||
@ -274,6 +275,9 @@ static SkImageFilter* make_image_filter(bool canBeNull = true) {
|
||||
case TILE:
|
||||
filter = new SkTileImageFilter(make_rect(), make_rect(), make_image_filter(false));
|
||||
break;
|
||||
case PICTURE:
|
||||
filter = new SkPictureImageFilter(NULL, make_rect());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user