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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 /** Forceably remove all cached layers and release the atlas. Useful for deb
ugging and timing. | 101 /** Forceably remove all cached layers and release the atlas. Useful for deb
ugging and timing. |
102 This is only functional when GR_CACHE_HOISTED_LAYERS is set to 1 in GrLa
yerCache.h | 102 This is only functional when GR_CACHE_HOISTED_LAYERS is set to 1 in GrLa
yerCache.h |
103 @param context Owner of the layer cache (and thus the layers) | 103 @param context Owner of the layer cache (and thus the layers) |
104 */ | 104 */ |
105 static void PurgeCache(GrContext* context); | 105 static void PurgeCache(GrContext* context); |
106 | 106 |
107 private: | 107 private: |
108 /** Update the GrTexture in 'layer' with its filtered version | 108 /** Update the GrTexture in 'layer' with its filtered version |
109 @param context Owner of the layer cache (and thus the layers) | 109 @param context Owner of the layer cache (and thus the layers) |
110 @param device Required by the filtering code | 110 @param device Required by the filtering code |
111 @param layer A layer needing filtering prior to being composited | 111 @param info Layer info for a layer needing filtering prior to bein
g composited |
112 */ | 112 */ |
113 static void FilterLayer(GrContext* context, SkGpuDevice* device, GrCachedLay
er* layer); | 113 static void FilterLayer(GrContext* context, SkGpuDevice* device, const GrHoi
stedLayer& info); |
114 | 114 |
115 }; | 115 }; |
116 | 116 |
117 #endif | 117 #endif |
OLD | NEW |