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

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

Issue 1055843002: Adding a cache + memory pool for GPU TextBlobs (Closed) Base URL: https://skia.googlesource.com/skia.git@atlastext2
Patch Set: feedback inc 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 | « gyp/gpu.gypi ('k') | include/gpu/GrContext.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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void operator delete(void* p) { sk_free(p); } 85 void operator delete(void* p) { sk_free(p); }
86 void* operator new(size_t) { 86 void* operator new(size_t) {
87 SkFAIL("All blobs are created by placement new."); 87 SkFAIL("All blobs are created by placement new.");
88 return sk_malloc_throw(0); 88 return sk_malloc_throw(0);
89 } 89 }
90 void* operator new(size_t, void* p) { return p; } 90 void* operator new(size_t, void* p) { return p; }
91 91
92 static unsigned ScalarsPerGlyph(GlyphPositioning pos); 92 static unsigned ScalarsPerGlyph(GlyphPositioning pos);
93 93
94 friend class GrAtlasTextContext; 94 friend class GrAtlasTextContext;
95 friend class GrTextBlobCache;
95 friend class GrTextContext; 96 friend class GrTextContext;
96 friend class SkBaseDevice; 97 friend class SkBaseDevice;
97 friend class SkTextBlobBuilder; 98 friend class SkTextBlobBuilder;
98 friend class TextBlobTester; 99 friend class TextBlobTester;
99 100
100 const int fRunCount; 101 const int fRunCount;
101 const SkRect fBounds; 102 const SkRect fBounds;
102 const uint32_t fUniqueID; 103 const uint32_t fUniqueID;
103 104
104 SkDEBUGCODE(size_t fStorageSize;) 105 SkDEBUGCODE(size_t fStorageSize;)
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 200
200 SkRect fBounds; 201 SkRect fBounds;
201 int fRunCount; 202 int fRunCount;
202 bool fDeferredBounds; 203 bool fDeferredBounds;
203 size_t fLastRun; // index into fStorage 204 size_t fLastRun; // index into fStorage
204 205
205 RunBuffer fCurrentRunBuffer; 206 RunBuffer fCurrentRunBuffer;
206 }; 207 };
207 208
208 #endif // SkTextBlob_DEFINED 209 #endif // SkTextBlob_DEFINED
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698