| OLD | NEW | 
|---|
| 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 #include "GrTextBlobCache.h" | 8 #include "GrTextBlobCache.h" | 
| 9 | 9 | 
| 10 static const int kVerticesPerGlyph = 4; | 10 static const int kVerticesPerGlyph = 4; | 
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 48 | 48 | 
| 49 void GrTextBlobCache::freeAll() { | 49 void GrTextBlobCache::freeAll() { | 
| 50     SkTDynamicHash<GrAtlasTextBlob, GrAtlasTextBlob::Key>::Iter iter(&fCache); | 50     SkTDynamicHash<GrAtlasTextBlob, GrAtlasTextBlob::Key>::Iter iter(&fCache); | 
| 51     while (!iter.done()) { | 51     while (!iter.done()) { | 
| 52         GrAtlasTextBlob* blob = &(*iter); | 52         GrAtlasTextBlob* blob = &(*iter); | 
| 53         fBlobList.remove(blob); | 53         fBlobList.remove(blob); | 
| 54         blob->unref(); | 54         blob->unref(); | 
| 55         ++iter; | 55         ++iter; | 
| 56     } | 56     } | 
| 57     fCache.rewind(); | 57     fCache.rewind(); | 
|  | 58 | 
|  | 59     // There should be no allocations in the memory pool at this point | 
|  | 60     SkASSERT(fPool.isEmpty()); | 
| 58 } | 61 } | 
| OLD | NEW | 
|---|