| 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 |
| 11 #include "GrTexture.h" | 11 #include "GrTexture.h" |
| 12 #include "batches/GrDrawBatch.h" | |
| 13 #include "SkPoint.h" | 12 #include "SkPoint.h" |
| 14 #include "SkTDArray.h" | 13 #include "SkTDArray.h" |
| 15 #include "SkTInternalLList.h" | 14 #include "SkTInternalLList.h" |
| 16 | 15 |
| 16 #include "batches/GrDrawBatch.h" |
| 17 |
| 17 class GrRectanizer; | 18 class GrRectanizer; |
| 18 | 19 |
| 19 struct GrBatchAtlasConfig { | 20 struct GrBatchAtlasConfig { |
| 20 int numPlotsX() const { return fWidth / fPlotWidth; } | 21 int numPlotsX() const { return fWidth / fPlotWidth; } |
| 21 int numPlotsY() const { return fHeight / fPlotWidth; } | 22 int numPlotsY() const { return fHeight / fPlotWidth; } |
| 22 int fWidth; | 23 int fWidth; |
| 23 int fHeight; | 24 int fHeight; |
| 24 int fPlotWidth; | 25 int fPlotWidth; |
| 25 int fPlotHeight; | 26 int fPlotHeight; |
| 26 }; | 27 }; |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 }; | 257 }; |
| 257 | 258 |
| 258 SkTDArray<EvictionData> fEvictionCallbacks; | 259 SkTDArray<EvictionData> fEvictionCallbacks; |
| 259 // allocated array of GrBatchPlots | 260 // allocated array of GrBatchPlots |
| 260 SkAutoTUnref<BatchPlot>* fPlotArray; | 261 SkAutoTUnref<BatchPlot>* fPlotArray; |
| 261 // LRU list of GrPlots (MRU at head - LRU at tail) | 262 // LRU list of GrPlots (MRU at head - LRU at tail) |
| 262 GrBatchPlotList fPlotList; | 263 GrBatchPlotList fPlotList; |
| 263 }; | 264 }; |
| 264 | 265 |
| 265 #endif | 266 #endif |
| OLD | NEW |