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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 fDrawData[i].canvas->drawPicture(fDrawData[i].picture, | 139 fDrawData[i].canvas->drawPicture(fDrawData[i].picture, |
140 &fDrawData[i].matrix, | 140 &fDrawData[i].matrix, |
141 fDrawData[i].paint); | 141 fDrawData[i].paint); |
142 } | 142 } |
143 } | 143 } |
144 | 144 |
145 #ifndef SK_IGNORE_GPU_LAYER_HOISTING | 145 #ifndef SK_IGNORE_GPU_LAYER_HOISTING |
146 if (NULL != context) { | 146 if (NULL != context) { |
147 GrLayerHoister::UnlockLayers(context, atlasedNeedRendering); | 147 GrLayerHoister::UnlockLayers(context, atlasedNeedRendering); |
148 GrLayerHoister::UnlockLayers(context, atlasedRecycled); | 148 GrLayerHoister::UnlockLayers(context, atlasedRecycled); |
149 #if !GR_CACHE_HOISTED_LAYERS | |
150 GrLayerHoister::PurgeCache(context); | |
151 #endif | |
152 } | 149 } |
153 #endif | 150 #endif |
154 | 151 |
155 this->reset(); | 152 this->reset(); |
156 } | 153 } |
157 | 154 |
OLD | NEW |