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 GrLayerHoister_DEFINED | 8 #ifndef GrLayerHoister_DEFINED |
9 #define GrLayerHoister_DEFINED | 9 #define GrLayerHoister_DEFINED |
10 | 10 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 @param replacements Replacement object that will be used for a replaceme
nt draw | 80 @param replacements Replacement object that will be used for a replaceme
nt draw |
81 */ | 81 */ |
82 static void ConvertLayersToReplacements(const SkTDArray<GrHoistedLayer>& lay
ers, | 82 static void ConvertLayersToReplacements(const SkTDArray<GrHoistedLayer>& lay
ers, |
83 GrReplacements* replacements); | 83 GrReplacements* replacements); |
84 | 84 |
85 /** Unlock a group of layers in the layer cache. | 85 /** Unlock a group of layers in the layer cache. |
86 @param context Owner of the layer cache (and thus the layers) | 86 @param context Owner of the layer cache (and thus the layers) |
87 @param layers Unneeded layers in the atlas | 87 @param layers Unneeded layers in the atlas |
88 */ | 88 */ |
89 static void UnlockLayers(GrContext* context, const SkTDArray<GrHoistedLayer>
& layers); | 89 static void UnlockLayers(GrContext* context, const SkTDArray<GrHoistedLayer>
& layers); |
90 | |
91 /** Forceably remove all cached layers and release the atlas. Useful for deb
ugging and timing. | |
92 This is only functional when GR_CACHE_HOISTED_LAYERS is set to 1 in GrLa
yerCache.h | |
93 @param context Owner of the layer cache (and thus the layers) | |
94 */ | |
95 static void PurgeCache(GrContext* context); | |
96 }; | 90 }; |
97 | 91 |
98 #endif | 92 #endif |
OLD | NEW |