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

Side by Side Diff: src/gpu/GrTextBlobCache.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
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 GrTextBlobCache_DEFINED 8 #ifndef GrTextBlobCache_DEFINED
9 #define GrTextBlobCache_DEFINED 9 #define GrTextBlobCache_DEFINED
10 10
11 #include "GrAtlasTextContext.h" 11 #include "GrAtlasTextContext.h"
12 #include "SkTDynamicHash.h" 12 #include "SkTDynamicHash.h"
13 #include "SkTextBlob.h" 13 #include "SkTextBlobPriv.h"
14 14
15 class GrTextBlobCache { 15 class GrTextBlobCache {
16 public: 16 public:
17 /** 17 /**
18 * The callback function used by the cache when it is still over budget afte r a purge. The 18 * The callback function used by the cache when it is still over budget afte r a purge. The
19 * passed in 'data' is the same 'data' handed to setOverbudgetCallback. 19 * passed in 'data' is the same 'data' handed to setOverbudgetCallback.
20 */ 20 */
21 typedef void (*PFOverBudgetCB)(void* data); 21 typedef void (*PFOverBudgetCB)(void* data);
22 22
23 GrTextBlobCache(PFOverBudgetCB cb, void* data) 23 GrTextBlobCache(PFOverBudgetCB cb, void* data)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 static const int kDefaultBudget = 1 << 22; 149 static const int kDefaultBudget = 1 << 22;
150 BitmapBlobList fBlobList; 150 BitmapBlobList fBlobList;
151 SkTDynamicHash<GrAtlasTextBlob, GrAtlasTextBlob::Key> fCache; 151 SkTDynamicHash<GrAtlasTextBlob, GrAtlasTextBlob::Key> fCache;
152 GrMemoryPool fPool; 152 GrMemoryPool fPool;
153 PFOverBudgetCB fCallback; 153 PFOverBudgetCB fCallback;
154 void* fData; 154 void* fData;
155 size_t fBudget; 155 size_t fBudget;
156 }; 156 };
157 157
158 #endif 158 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698