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

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

Issue 1381073002: Implement cached nvpr text blobs (Closed) Base URL: https://skia.googlesource.com/skia.git@upload3_fallbackblob
Patch Set: Created 5 years, 2 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 | « no previous file | src/gpu/GrStencilAndCoverTextContext.h » ('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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void operator delete(void* p) { sk_free(p); } 86 void operator delete(void* p) { sk_free(p); }
87 void* operator new(size_t) { 87 void* operator new(size_t) {
88 SkFAIL("All blobs are created by placement new."); 88 SkFAIL("All blobs are created by placement new.");
89 return sk_malloc_throw(0); 89 return sk_malloc_throw(0);
90 } 90 }
91 void* operator new(size_t, void* p) { return p; } 91 void* operator new(size_t, void* p) { return p; }
92 92
93 static unsigned ScalarsPerGlyph(GlyphPositioning pos); 93 static unsigned ScalarsPerGlyph(GlyphPositioning pos);
94 94
95 friend class GrAtlasTextContext; 95 friend class GrAtlasTextContext;
96 friend class GrStencilAndCoverTextContext;
96 friend class GrTextBlobCache; 97 friend class GrTextBlobCache;
97 friend class GrTextContext; 98 friend class GrTextContext;
98 friend class SkBaseDevice; 99 friend class SkBaseDevice;
99 friend class SkTextBlobBuilder; 100 friend class SkTextBlobBuilder;
100 friend class TextBlobTester; 101 friend class TextBlobTester;
101 102
102 const int fRunCount; 103 const int fRunCount;
103 const SkRect fBounds; 104 const SkRect fBounds;
104 const uint32_t fUniqueID; 105 const uint32_t fUniqueID;
105 106
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 202
202 SkRect fBounds; 203 SkRect fBounds;
203 int fRunCount; 204 int fRunCount;
204 bool fDeferredBounds; 205 bool fDeferredBounds;
205 size_t fLastRun; // index into fStorage 206 size_t fLastRun; // index into fStorage
206 207
207 RunBuffer fCurrentRunBuffer; 208 RunBuffer fCurrentRunBuffer;
208 }; 209 };
209 210
210 #endif // SkTextBlob_DEFINED 211 #endif // SkTextBlob_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrStencilAndCoverTextContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698