Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: src/core/SkMultiPictureDraw.cpp

Issue 678403002: Discard atlas after every MultiPictureDraw::draw (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix rebase error Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/gpu/GrLayerCache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrLayerCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698