From 1347144e3ef790c9431d18a8005dcf8914899b1d Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Mon, 23 Jul 2018 16:20:53 -0400 Subject: Centralize bitmap glyph positioning Centralize all text drawing for bitmap devices into SkGlyphRunListDrawer. All drawing decisions are encapsulated in this class, and its behavior only depends on contant properties of the device. The method drawForBitmap will probably have to be converted to a template based in preliminary performance numbers. Change-Id: Id21567c1511eee9d2e9e20c7ae93544530cfdb81 Reviewed-on: https://skia-review.googlesource.com/143106 Reviewed-by: Mike Klein Reviewed-by: Herb Derby Commit-Queue: Herb Derby --- include/core/SkPaint.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index d7ec9bbea8..08d8d658f1 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -31,6 +31,7 @@ class SkData; class SkDescriptor; class SkDrawLooper; class SkGlyph; +class SkGlyphRunListDrawer; struct SkRect; class SkGlyphCache; class SkImageFilter; @@ -1535,6 +1536,7 @@ private: friend class SkCanonicalizePaint; friend class SkCanvas; friend class SkDraw; + friend class SkGlyphRunListDrawer; friend class SkPaintPriv; friend class SkPDFDevice; friend class SkScalerContext; // for computeLuminanceColor() -- cgit v1.2.3