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 #if SK_SUPPORT_GPU | 8 #if SK_SUPPORT_GPU |
9 #include "GrLayerHoister.h" | 9 #include "GrLayerHoister.h" |
10 #include "GrRecordReplaceDraw.h" | 10 #include "GrRecordReplaceDraw.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } else | 175 } else |
176 #endif | 176 #endif |
177 { | 177 { |
178 canvas->drawPicture(picture, &data.fMatrix, data.fPaint); | 178 canvas->drawPicture(picture, &data.fMatrix, data.fPaint); |
179 } | 179 } |
180 } | 180 } |
181 | 181 |
182 #ifndef SK_IGNORE_GPU_LAYER_HOISTING | 182 #ifndef SK_IGNORE_GPU_LAYER_HOISTING |
183 GrLayerHoister::UnlockLayers(context, atlasedNeedRendering); | 183 GrLayerHoister::UnlockLayers(context, atlasedNeedRendering); |
184 GrLayerHoister::UnlockLayers(context, atlasedRecycled); | 184 GrLayerHoister::UnlockLayers(context, atlasedRecycled); |
| 185 #if !GR_CACHE_HOISTED_LAYERS |
| 186 GrLayerHoister::PurgeCache(context); |
| 187 #endif |
185 #endif | 188 #endif |
186 } | 189 } |
187 | 190 |
OLD | NEW |