update NWay canvas with onDrawSlug
Change-Id: I8b01ecfbbd7295d1109d624b64c162d8e31e18ea Reviewed-on: https://skia-review.googlesource.com/c/skia/+/523676 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
parent
a11e221a13
commit
399be2e211
@ -39,6 +39,9 @@ protected:
|
|||||||
void onDrawGlyphRunList(const SkGlyphRunList&, const SkPaint&) override;
|
void onDrawGlyphRunList(const SkGlyphRunList&, const SkPaint&) override;
|
||||||
void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
|
void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
|
||||||
const SkPaint& paint) override;
|
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],
|
void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
||||||
const SkPoint texCoords[4], SkBlendMode, const SkPaint& paint) override;
|
const SkPoint texCoords[4], SkBlendMode, const SkPaint& paint) override;
|
||||||
|
|
||||||
|
@ -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,
|
void SkNWayCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix,
|
||||||
const SkPaint* paint) {
|
const SkPaint* paint) {
|
||||||
Iter iter(fList);
|
Iter iter(fList);
|
||||||
|
Loading…
Reference in New Issue
Block a user