Chromium Code Reviews| Index: samplecode/SampleFilterFuzz.cpp |
| diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
| index f8ceed452cd4bb4229b4748101057519266769f4..45b43df9536a69277d3690906816726725eb06a4 100644 |
| --- a/samplecode/SampleFilterFuzz.cpp |
| +++ b/samplecode/SampleFilterFuzz.cpp |
| @@ -204,7 +204,7 @@ static SkTypeface::Style make_typeface_style() { |
| } |
| static SkPath1DPathEffect::Style make_path_1d_path_effect_style() { |
|
robertphillips
2016/02/22 17:40:14
We don't want to do the kLast_Style thing?
reed1
2016/02/22 19:57:44
Sure, I will add that.
|
| - return static_cast<SkPath1DPathEffect::Style>(R(SkPath1DPathEffect::kStyleCount)); |
| + return static_cast<SkPath1DPathEffect::Style>(R((int)SkPath1DPathEffect::kMorph_Style + 1)); |
| } |
| static SkColor make_color() { |
| @@ -529,7 +529,9 @@ static SkPaint make_paint() { |
| paint.setMaskFilter(make_mask_filter()); |
| SkAutoTUnref<SkTypeface> typeface( |
| SkTypeface::CreateFromName(make_font_name().c_str(), make_typeface_style())); |
|
robertphillips
2016/02/22 17:40:14
What's all this then?
reed1
2016/02/22 19:57:44
We could is well defined (at the moment) to NOT su
|
| +#if 0 |
| paint.setTypeface(typeface); |
| +#endif |
| SkLayerRasterizer::Builder rasterizerBuilder; |
| SkPaint paintForRasterizer; |
| if (R(2) == 1) { |