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

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

Issue 517663003: Expose drawTextBlob to devices. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebased. Created 6 years, 3 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/SkDevice.h ('k') | src/core/SkCanvas.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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 uint32_t posStart; // index into fPosBuffer 79 uint32_t posStart; // index into fPosBuffer
80 SkPoint offset; // run offset (unsued for fully positioned glyphs) 80 SkPoint offset; // run offset (unsued for fully positioned glyphs)
81 SkPaint font; 81 SkPaint font;
82 GlyphPositioning positioning; 82 GlyphPositioning positioning;
83 }; 83 };
84 84
85 SkTextBlob(uint16_t* glyphs, SkScalar* pos, const SkTArray<Run>* runs, const SkRect& bounds); 85 SkTextBlob(uint16_t* glyphs, SkScalar* pos, const SkTArray<Run>* runs, const SkRect& bounds);
86 86
87 static unsigned ScalarsPerGlyph(GlyphPositioning pos); 87 static unsigned ScalarsPerGlyph(GlyphPositioning pos);
88 88
89 friend class SkCanvas; 89 friend class SkBaseDevice;
90 friend class SkTextBlobBuilder; 90 friend class SkTextBlobBuilder;
91 friend class TextBlobTester; 91 friend class TextBlobTester;
92 92
93 const SkAutoTMalloc<uint16_t> fGlyphBuffer; 93 const SkAutoTMalloc<uint16_t> fGlyphBuffer;
94 const SkAutoTMalloc<SkScalar> fPosBuffer; 94 const SkAutoTMalloc<SkScalar> fPosBuffer;
95 95
96 // SkTArray required here for run font destruction. 96 // SkTArray required here for run font destruction.
97 SkAutoTDelete<const SkTArray<Run> > fRuns; 97 SkAutoTDelete<const SkTArray<Run> > fRuns;
98 const SkRect fBounds; 98 const SkRect fBounds;
99 99
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 SkTDArray<SkScalar> fPosBuffer; 190 SkTDArray<SkScalar> fPosBuffer;
191 SkTArray<SkTextBlob::Run>* fRuns; 191 SkTArray<SkTextBlob::Run>* fRuns;
192 192
193 SkRect fBounds; 193 SkRect fBounds;
194 bool fDeferredBounds; 194 bool fDeferredBounds;
195 195
196 RunBuffer fCurrentRunBuffer; 196 RunBuffer fCurrentRunBuffer;
197 }; 197 };
198 198
199 #endif // SkTextBlob_DEFINED 199 #endif // SkTextBlob_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698