Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/core/SkTextBlobPriv.h

Issue 1411723005: Make SkTextBlob::RunIterator public. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-10-27 (Tuesday) 15:53:46 EDT Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 #ifndef SkTextBlobPriv_DEFINED
8 #define SkTextBlobPriv_DEFINED
9
10 #include "SkTextBlob.h"
11
12 /**
13 * Iterate through all of the text runs of the text blob. For example:
14 * for (SkTextBlob::RunIterator it(blob); !it.done(); it.next()) {
15 * .....
16 * }
17 */
18 class SkTextBlob::RunIterator {
19 public:
20 RunIterator(const SkTextBlob* blob);
21
22 bool done() const;
23 void next();
24
25 uint32_t glyphCount() const;
26 const uint16_t* glyphs() const;
27 const SkScalar* pos() const;
28 const SkPoint& offset() const;
29 void applyFontToPaint(SkPaint*) const;
30 GlyphPositioning positioning() const;
31 bool isLCD() const;
32
33 private:
34 const RunRecord* fCurrentRun;
35 int fRemainingRuns;
36
37 SkDEBUGCODE(uint8_t* fStorageTop;)
38 };
39
40 #endif // SkTextBlobPriv_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698