From e2e52e46ca63540d429656baeee48fd3a402be26 Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Thu, 21 Jun 2018 16:03:47 -0400 Subject: Remove drawTextBlob from device use drawGlyphRunList Convert all backends to use GlyphRunList instead of text blobs. If the device did not originally implement drawTextBlob it will be simulated by drawPosText on the device. Other changes: Change to using an origin from absolulte positioning. The GPU code uses origin change to update blobs under translation. Change cluster to use const uint32_t instead of just uint32_t. Add SkPaint to runs. The draw filter is hosted up to the canavas level and applied there. Change-Id: Ib105b6bd26b67db55f1c954e37c79fbdcaa9d4a2 Reviewed-on: https://skia-review.googlesource.com/137224 Reviewed-by: Herb Derby Reviewed-by: Khusal Sagar Reviewed-by: Hal Canary Reviewed-by: Jim Van Verth Commit-Queue: Herb Derby --- include/core/SkTextBlob.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/core/SkTextBlob.h b/include/core/SkTextBlob.h index 59151d3002..9f4f10f2e4 100644 --- a/include/core/SkTextBlob.h +++ b/include/core/SkTextBlob.h @@ -14,6 +14,7 @@ #include "SkString.h" #include "SkRefCnt.h" +class SkGlyphRunList; class SkReadBuffer; class SkWriteBuffer; @@ -110,6 +111,7 @@ private: fCacheID.store(cacheID); } + friend class SkGlyphRunList; friend class GrTextBlobCache; friend class SkTextBlobBuilder; friend class SkTextBlobRunIterator; -- cgit v1.2.3