rename doDrawSlug to onDrawSlug

Change-Id: Ic88b400f7943804481934ba2c9c54aeb8e04121b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/523656
Commit-Queue: Herb Derby <herb@google.com>
Auto-Submit: Herb Derby <herb@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
Herb Derby 2022-03-22 15:37:55 -04:00 committed by SkCQ
parent c29e37ad4c
commit 2bc9a1a94d
4 changed files with 5 additions and 5 deletions

View File

@ -2276,7 +2276,7 @@ protected:
/** Experimental
*/
virtual void doDrawSlug(const GrSlug* slug);
virtual void onDrawSlug(const GrSlug* slug);
#endif
private:

View File

@ -2353,11 +2353,11 @@ SkCanvas::doConvertBlobToSlug(const SkTextBlob& blob, SkPoint origin, const SkPa
void SkCanvas::drawSlug(const GrSlug* slug) {
TRACE_EVENT0("skia", TRACE_FUNC);
if (slug) {
this->doDrawSlug(slug);
this->onDrawSlug(slug);
}
}
void SkCanvas::doDrawSlug(const GrSlug* slug) {
void SkCanvas::onDrawSlug(const GrSlug* slug) {
SkRect bounds = slug->sourceBounds();
if (this->internalQuickReject(bounds, slug->paint())) {
return;

View File

@ -580,7 +580,7 @@ void SkPictureRecord::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScala
}
#if SK_SUPPORT_GPU
void SkPictureRecord::doDrawSlug(const GrSlug* slug) {
void SkPictureRecord::onDrawSlug(const GrSlug* slug) {
// Just the id for the slug.
size_t size = kUInt32Size;
size_t initialOffset = this->addDraw(DRAW_SLUG, &size);

View File

@ -180,7 +180,7 @@ protected:
void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
const SkPaint& paint) override;
#if SK_SUPPORT_GPU
void doDrawSlug(const GrSlug* slug) override;
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;