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 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 GrPlot* fFreePlots; | 92 GrPlot* fFreePlots; |
93 }; | 93 }; |
94 | 94 |
95 class GrAtlas { | 95 class GrAtlas { |
96 public: | 96 public: |
97 GrAtlas(GrAtlasMgr* mgr) : fPlots(NULL), fAtlasMgr(mgr) { } | 97 GrAtlas(GrAtlasMgr* mgr) : fPlots(NULL), fAtlasMgr(mgr) { } |
98 ~GrAtlas() { fAtlasMgr->deletePlotList(fPlots); } | 98 ~GrAtlas() { fAtlasMgr->deletePlotList(fPlots); } |
99 | 99 |
100 bool isEmpty() { return NULL == fPlots; } | 100 bool isEmpty() { return NULL == fPlots; } |
101 | 101 |
| 102 SkISize getSize() const; |
| 103 |
102 private: | 104 private: |
103 GrPlot* fPlots; | 105 GrPlot* fPlots; |
104 GrAtlasMgr* fAtlasMgr; | 106 GrAtlasMgr* fAtlasMgr; |
105 | 107 |
106 friend class GrAtlasMgr; | 108 friend class GrAtlasMgr; |
107 }; | 109 }; |
108 | 110 |
109 #endif | 111 #endif |
OLD | NEW |