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

Side by Side Diff: src/gpu/effects/GrTextureStripAtlas.h

Issue 32523004: GrTHashCache -> GrTHashTable (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: no-find-copies Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrTextStrike.h ('k') | src/gpu/gl/GrGpuGL.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 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 "GrBinHashKey.h"
12 #include "GrTHashCache.h" 12 #include "GrTHashTable.h"
13 #include "SkBitmap.h" 13 #include "SkBitmap.h"
14 #include "SkGr.h" 14 #include "SkGr.h"
15 #include "SkTDArray.h" 15 #include "SkTDArray.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 */
22 class GrTextureStripAtlas { 22 class GrTextureStripAtlas {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Head and tail for linked list of least-recently-used rows (front = least recently used). 172 // Head and tail for linked list of least-recently-used rows (front = least recently used).
173 // Note that when a texture is locked, it gets removed from this list until it is unlocked. 173 // Note that when a texture is locked, it gets removed from this list until it is unlocked.
174 AtlasRow* fLRUFront; 174 AtlasRow* fLRUFront;
175 AtlasRow* fLRUBack; 175 AtlasRow* fLRUBack;
176 176
177 // A list of pointers to AtlasRows that currently contain cached images, sor ted by key 177 // A list of pointers to AtlasRows that currently contain cached images, sor ted by key
178 SkTDArray<AtlasRow*> fKeyTable; 178 SkTDArray<AtlasRow*> fKeyTable;
179 }; 179 };
180 180
181 #endif 181 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTextStrike.h ('k') | src/gpu/gl/GrGpuGL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698