OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrLayerCache_DEFINED | 8 #ifndef GrLayerCache_DEFINED |
9 #define GrLayerCache_DEFINED | 9 #define GrLayerCache_DEFINED |
10 | 10 |
11 #define USE_ATLAS 0 | |
12 | |
13 #include "GrAtlas.h" | 11 #include "GrAtlas.h" |
14 #include "GrPictureUtils.h" | 12 #include "GrPictureUtils.h" |
15 #include "GrRect.h" | 13 #include "GrRect.h" |
16 #include "SkChecksum.h" | 14 #include "SkChecksum.h" |
17 #include "SkTDynamicHash.h" | 15 #include "SkTDynamicHash.h" |
18 #include "SkMessageBus.h" | 16 #include "SkMessageBus.h" |
19 | 17 |
20 class SkPicture; | 18 class SkPicture; |
21 | 19 |
22 // The layer cache listens for these messages to purge picture-related resources
. | 20 // The layer cache listens for these messages to purge picture-related resources
. |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 // Try to find a purgeable plot and clear it out. Return true if a plot | 219 // Try to find a purgeable plot and clear it out. Return true if a plot |
222 // was purged; false otherwise. | 220 // was purged; false otherwise. |
223 bool purgePlot(); | 221 bool purgePlot(); |
224 | 222 |
225 // for testing | 223 // for testing |
226 friend class TestingAccess; | 224 friend class TestingAccess; |
227 int numLayers() const { return fLayerHash.count(); } | 225 int numLayers() const { return fLayerHash.count(); } |
228 }; | 226 }; |
229 | 227 |
230 #endif | 228 #endif |
OLD | NEW |