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

Side by Side Diff: include/core/SkTextBlob.h

Issue 1076593002: Start canonicalizing color for all A8 textblobs (Closed) Base URL: https://skia.googlesource.com/skia.git@atcachemasks
Patch Set: nits Created 5 years, 8 months 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
« no previous file with comments | « include/core/SkPaint.h ('k') | src/core/SkPaint.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkTextBlob_DEFINED 8 #ifndef SkTextBlob_DEFINED
9 #define SkTextBlob_DEFINED 9 #define SkTextBlob_DEFINED
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 bool done() const; 62 bool done() const;
63 void next(); 63 void next();
64 64
65 uint32_t glyphCount() const; 65 uint32_t glyphCount() const;
66 const uint16_t* glyphs() const; 66 const uint16_t* glyphs() const;
67 const SkScalar* pos() const; 67 const SkScalar* pos() const;
68 const SkPoint& offset() const; 68 const SkPoint& offset() const;
69 void applyFontToPaint(SkPaint*) const; 69 void applyFontToPaint(SkPaint*) const;
70 GlyphPositioning positioning() const; 70 GlyphPositioning positioning() const;
71 bool isLCD() const;
71 72
72 private: 73 private:
73 const RunRecord* fCurrentRun; 74 const RunRecord* fCurrentRun;
74 int fRemainingRuns; 75 int fRemainingRuns;
75 76
76 SkDEBUGCODE(uint8_t* fStorageTop;) 77 SkDEBUGCODE(uint8_t* fStorageTop;)
77 }; 78 };
78 79
79 SkTextBlob(int runCount, const SkRect& bounds); 80 SkTextBlob(int runCount, const SkRect& bounds);
80 81
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 201
201 SkRect fBounds; 202 SkRect fBounds;
202 int fRunCount; 203 int fRunCount;
203 bool fDeferredBounds; 204 bool fDeferredBounds;
204 size_t fLastRun; // index into fStorage 205 size_t fLastRun; // index into fStorage
205 206
206 RunBuffer fCurrentRunBuffer; 207 RunBuffer fCurrentRunBuffer;
207 }; 208 };
208 209
209 #endif // SkTextBlob_DEFINED 210 #endif // SkTextBlob_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkPaint.h ('k') | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698