Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index 298219dbc06e691e73813212a2f9b60432a402bb..8aa48ed5c9ca5375759e4f958bb50ef3a09cc4b3 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -371,7 +371,9 @@ static SkImageFilter* make_image_filter(bool canBeNull = true) { |
{ |
SkRTreeFactory factory; |
SkPictureRecorder recorder; |
- SkCanvas* recordingCanvas = recorder.beginRecording(kBitmapSize, kBitmapSize, &factory, 0); |
+ SkCanvas* recordingCanvas = recorder.beginRecording(SkIntToScalar(kBitmapSize), |
+ SkIntToScalar(kBitmapSize), |
+ &factory, 0); |
drawSomething(recordingCanvas); |
SkAutoTUnref<SkPicture> pict(recorder.endRecording()); |
filter = SkPictureImageFilter::Create(pict.get(), make_rect()); |