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

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

Issue 687233002: Revert of Discard atlas after every MultiPictureDraw::draw (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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