diff --git a/fuzz/FuzzCanvas.cpp b/fuzz/FuzzCanvas.cpp index bcd4619615..3b3715fe8a 100644 --- a/fuzz/FuzzCanvas.cpp +++ b/fuzz/FuzzCanvas.cpp @@ -1803,11 +1803,7 @@ DEF_FUZZ(DebugGLCanvas, fuzz) { #endif DEF_FUZZ(PDFCanvas, fuzz) { - struct final : public SkWStream { - bool write(const void*, size_t n) override { fN += n; return true; } - size_t bytesWritten() const override { return fN; } - size_t fN = 0; - } stream; + SkNullWStream stream; auto doc = SkDocument::MakePDF(&stream); fuzz_canvas(fuzz, doc->beginPage(SkIntToScalar(kCanvasSize.width()), SkIntToScalar(kCanvasSize.height())));