diff --git a/include/utils/SkNWayCanvas.h b/include/utils/SkNWayCanvas.h index 4470567de6..837ba8c5a0 100644 --- a/include/utils/SkNWayCanvas.h +++ b/include/utils/SkNWayCanvas.h @@ -39,6 +39,9 @@ protected: void onDrawGlyphRunList(const SkGlyphRunList&, const SkPaint&) override; void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) override; +#if SK_SUPPORT_GPU + void onDrawSlug(const GrSlug* slug) override; +#endif void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode, const SkPaint& paint) override; diff --git a/src/utils/SkNWayCanvas.cpp b/src/utils/SkNWayCanvas.cpp index 33a4d0b322..63ea37d333 100644 --- a/src/utils/SkNWayCanvas.cpp +++ b/src/utils/SkNWayCanvas.cpp @@ -292,6 +292,15 @@ void SkNWayCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y } } +#if SK_SUPPORT_GPU +void SkNWayCanvas::onDrawSlug(const GrSlug* slug) { + Iter iter(fList); + while (iter.next()) { + iter->drawSlug(slug); + } +} +#endif + void SkNWayCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint) { Iter iter(fList);