aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkGlyphRun.h
diff options
context:
space:
mode:
authorGravatar Herb Derby <herb@google.com>2018-07-27 11:58:37 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-27 18:28:56 +0000
commitf4f6bbfadac327619a3832acad9c8afe06629b55 (patch)
tree2af68fcfee34e090040cd548177b673082275535 /src/core/SkGlyphRun.h
parent88f6d37f3fd98eb7a588c2188f25cf8de42b41a6 (diff)
Duplicate drawDFPosText into drawDFGlyphRun
This CL has duplicate code, but this should be a small CL to judge how glyphRuns will change the code. Change-Id: Ib4700aa9d19ae3811090796a2c59bbe746361202 Reviewed-on: https://skia-review.googlesource.com/144022 Auto-Submit: Herb Derby <herb@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/core/SkGlyphRun.h')
-rw-r--r--src/core/SkGlyphRun.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkGlyphRun.h b/src/core/SkGlyphRun.h
index 1456e6c290..fc85c3ec03 100644
--- a/src/core/SkGlyphRun.h
+++ b/src/core/SkGlyphRun.h
@@ -209,6 +209,7 @@ public:
const uint32_t* clusters() const { return fList[fIndex].clusters().data(); }
uint32_t textSize() const { return fList[fIndex].text().size(); }
const char* text() const { return fList[fIndex].text().data(); }
+ const SkGlyphRun& glyphRun() const { return fList[fIndex]; }
bool isLCD() const { return fList[fIndex].paint().isLCDRenderText(); }