Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index 28155f14fd382ad969ff9f5c58fa61d45697f1ca..687921ae0bdb19dd256da4c894b62fd0f49a6d95 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -9,6 +9,7 @@ |
#include "Sk2DPathEffect.h" |
#include "SkAlphaThresholdFilter.h" |
#include "SkArcToPathEffect.h" |
+#include "SkAnnotation.h" |
#include "SkBlurImageFilter.h" |
#include "SkBlurMaskFilter.h" |
#include "SkCanvas.h" |
@@ -544,6 +545,9 @@ |
paint.setRasterizer(rasterizer); |
paint.setImageFilter(make_image_filter()); |
SkAutoDataUnref data(make_3Dlut(nullptr, make_bool(), make_bool(), make_bool())); |
+ SkAutoTUnref<SkAnnotation> annotation( |
+ SkAnnotation::Create(make_string().c_str(), data)); |
+ paint.setAnnotation(annotation); |
paint.setTextAlign(make_paint_align()); |
paint.setTextSize(make_scalar()); |
paint.setTextScaleX(make_scalar()); |