OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrTextureStripAtlas_DEFINED | 8 #ifndef GrTextureStripAtlas_DEFINED |
9 #define GrTextureStripAtlas_DEFINED | 9 #define GrTextureStripAtlas_DEFINED |
10 | 10 |
11 #include "GrBinHashKey.h" | 11 #include "GrMurmur3HashKey.h" |
12 #include "SkBitmap.h" | 12 #include "SkBitmap.h" |
13 #include "SkGr.h" | 13 #include "SkGr.h" |
14 #include "SkTDArray.h" | 14 #include "SkTDArray.h" |
15 #include "SkTDynamicHash.h" | 15 #include "SkTDynamicHash.h" |
16 #include "SkTypes.h" | 16 #include "SkTypes.h" |
17 | 17 |
18 /** | 18 /** |
19 * Maintains a single large texture whose rows store many textures of a small fi
xed height, | 19 * Maintains a single large texture whose rows store many textures of a small fi
xed height, |
20 * stored in rows across the x-axis such that we can safely wrap/repeat them hor
izontally. | 20 * stored in rows across the x-axis such that we can safely wrap/repeat them hor
izontally. |
21 */ | 21 */ |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // Head and tail for linked list of least-recently-used rows (front = least
recently used). | 176 // Head and tail for linked list of least-recently-used rows (front = least
recently used). |
177 // Note that when a texture is locked, it gets removed from this list until
it is unlocked. | 177 // Note that when a texture is locked, it gets removed from this list until
it is unlocked. |
178 AtlasRow* fLRUFront; | 178 AtlasRow* fLRUFront; |
179 AtlasRow* fLRUBack; | 179 AtlasRow* fLRUBack; |
180 | 180 |
181 // A list of pointers to AtlasRows that currently contain cached images, sor
ted by key | 181 // A list of pointers to AtlasRows that currently contain cached images, sor
ted by key |
182 SkTDArray<AtlasRow*> fKeyTable; | 182 SkTDArray<AtlasRow*> fKeyTable; |
183 }; | 183 }; |
184 | 184 |
185 #endif | 185 #endif |
OLD | NEW |