OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef GrAtlas_DEFINED | 9 #ifndef GrAtlas_DEFINED |
10 #define GrAtlas_DEFINED | 10 #define GrAtlas_DEFINED |
11 | 11 |
12 | 12 |
| 13 #include "SkTDArray.h" |
13 #include "GrTexture.h" | 14 #include "GrTexture.h" |
14 #include "GrDrawTarget.h" | |
15 #include "SkPoint.h" | 15 #include "SkPoint.h" |
16 #include "SkTInternalLList.h" | 16 #include "SkTInternalLList.h" |
17 | 17 |
18 class GrGpu; | 18 class GrGpu; |
19 class GrRectanizer; | 19 class GrRectanizer; |
20 class GrAtlas; | 20 class GrAtlas; |
21 | 21 |
22 // The backing GrTexture for a set of GrAtlases is broken into a spatial grid of
GrPlots. When | 22 // The backing GrTexture for a set of GrAtlases is broken into a spatial grid of
GrPlots. When |
23 // a GrAtlas needs space on the texture, it requests a GrPlot. Each GrAtlas can
claim one | 23 // a GrAtlas needs space on the texture, it requests a GrPlot. Each GrAtlas can
claim one |
24 // or more GrPlots. The GrPlots keep track of subimage placement via their GrRec
tanizer. Once a | 24 // or more GrPlots. The GrPlots keep track of subimage placement via their GrRec
tanizer. Once a |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 int fNumPlotsY; | 128 int fNumPlotsY; |
129 bool fBatchUploads; | 129 bool fBatchUploads; |
130 | 130 |
131 // allocated array of GrPlots | 131 // allocated array of GrPlots |
132 GrPlot* fPlotArray; | 132 GrPlot* fPlotArray; |
133 // LRU list of GrPlots (MRU at head - LRU at tail) | 133 // LRU list of GrPlots (MRU at head - LRU at tail) |
134 GrPlotList fPlotList; | 134 GrPlotList fPlotList; |
135 }; | 135 }; |
136 | 136 |
137 #endif | 137 #endif |
OLD | NEW |