diff options
author | Herb Derby <herb@google.com> | 2018-07-23 16:20:53 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-26 18:16:46 +0000 |
commit | 1347144e3ef790c9431d18a8005dcf8914899b1d (patch) | |
tree | 212383343d996fcc2a9249760f93bff317ec4490 /include | |
parent | 97e858f359d165b35a304a840d43c2b6412fc241 (diff) |
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 <mtklein@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPaint.h | 2 |
1 files changed, 2 insertions, 0 deletions
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() |