| 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 #ifndef GrBatchAtlas_DEFINED | 8 #ifndef GrBatchAtlas_DEFINED |
| 9 #define GrBatchAtlas_DEFINED | 9 #define GrBatchAtlas_DEFINED |
| 10 | 10 |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 return; | 234 return; |
| 235 } | 235 } |
| 236 | 236 |
| 237 fPlotList.remove(plot); | 237 fPlotList.remove(plot); |
| 238 fPlotList.addToHead(plot); | 238 fPlotList.addToHead(plot); |
| 239 } | 239 } |
| 240 | 240 |
| 241 inline void processEviction(AtlasID); | 241 inline void processEviction(AtlasID); |
| 242 | 242 |
| 243 GrTexture* fTexture; | 243 GrTexture* fTexture; |
| 244 int fPlotWidth; |
| 245 int fPlotHeight; |
| 244 SkDEBUGCODE(uint32_t fNumPlots;) | 246 SkDEBUGCODE(uint32_t fNumPlots;) |
| 245 | 247 |
| 246 uint64_t fAtlasGeneration; | 248 uint64_t fAtlasGeneration; |
| 247 | 249 |
| 248 struct EvictionData { | 250 struct EvictionData { |
| 249 EvictionFunc fFunc; | 251 EvictionFunc fFunc; |
| 250 void* fData; | 252 void* fData; |
| 251 }; | 253 }; |
| 252 | 254 |
| 253 SkTDArray<EvictionData> fEvictionCallbacks; | 255 SkTDArray<EvictionData> fEvictionCallbacks; |
| 254 // allocated array of GrBatchPlots | 256 // allocated array of GrBatchPlots |
| 255 SkAutoTUnref<BatchPlot>* fPlotArray; | 257 SkAutoTUnref<BatchPlot>* fPlotArray; |
| 256 // LRU list of GrPlots (MRU at head - LRU at tail) | 258 // LRU list of GrPlots (MRU at head - LRU at tail) |
| 257 GrBatchPlotList fPlotList; | 259 GrBatchPlotList fPlotList; |
| 258 }; | 260 }; |
| 259 | 261 |
| 260 #endif | 262 #endif |
| OLD | NEW |