diff options
author | Florin Malita <fmalita@chromium.org> | 2018-07-27 09:47:15 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-27 14:10:17 +0000 |
commit | ab54e7394d81438f5256b632c71724b480a7f66b (patch) | |
tree | aedbae9659b1d67b069751ae730fb8c09e73f96d /src/core/SkTextBlobRunIterator.h | |
parent | 504dd052b94c318afeadc5c68e1c3b233d7571c1 (diff) |
Hide SkTextBlob::GlyphPositioning from public API
Make private, add corresponding SkTextBlobRunIterator enum.
Also move SkTextBlobRunIterator to SkTextBlobPriv.h.
Change-Id: If3e0beabb0e8484b1ac73c6fc0827e920ca1f93b
Reviewed-on: https://skia-review.googlesource.com/142501
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Reviewed-by: Cary Clark <caryclark@google.com>
Diffstat (limited to 'src/core/SkTextBlobRunIterator.h')
-rw-r--r-- | src/core/SkTextBlobRunIterator.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/core/SkTextBlobRunIterator.h b/src/core/SkTextBlobRunIterator.h deleted file mode 100644 index 18f41d7dcb..0000000000 --- a/src/core/SkTextBlobRunIterator.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2015 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ -#ifndef SkTextBlobRunIterator_DEFINED -#define SkTextBlobRunIterator_DEFINED - -#include "SkTextBlob.h" - -/** - * Iterate through all of the text runs of the text blob. For example: - * for (SkTextBlobRunIterator it(blob); !it.done(); it.next()) { - * ..... - * } - */ -class SkTextBlobRunIterator { -public: - SkTextBlobRunIterator(const SkTextBlob* blob); - - bool done() const; - void next(); - - uint32_t glyphCount() const; - const uint16_t* glyphs() const; - const SkScalar* pos() const; - const SkPoint& offset() const; - void applyFontToPaint(SkPaint*) const; - SkTextBlob::GlyphPositioning positioning() const; - uint32_t* clusters() const; - uint32_t textSize() const; - char* text() const; - - bool isLCD() const; - -private: - const SkTextBlob::RunRecord* fCurrentRun; - - SkDEBUGCODE(uint8_t* fStorageTop;) -}; - -#endif // SkTextBlobRunIterator_DEFINED |