blob: f69f633a5e46df5842cca40a5801a9d028b81472 [file] [log] [blame]
/*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/private/chromium/GrSlug.h"
#include "include/core/SkCanvas.h"
GrSlug::~GrSlug() = default;
sk_sp<GrSlug> GrSlug::ConvertBlob(
SkCanvas* canvas, const SkTextBlob& blob, SkPoint origin, const SkPaint& paint) {
return canvas->convertBlobToSlug(blob, origin, paint);
}
void GrSlug::draw(SkCanvas* canvas) {
canvas->drawSlug(this);
}
// Most of GrSlug's implementation is in GrTextBlob.cpp to share common code.