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

Side by Side Diff: src/gpu/GrBatchAtlas.h

Issue 2144663004: Make GrBatchAtlas robust against attempts to add large rects. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix warning Created 4 years, 5 months 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/GrBatchAtlas.cpp » ('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 2015 Google Inc. 2 * Copyright 2015 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 GrBatchAtlas_DEFINED 8 #ifndef GrBatchAtlas_DEFINED
9 #define GrBatchAtlas_DEFINED 9 #define GrBatchAtlas_DEFINED
10 10
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 return; 234 return;
235 } 235 }
236 236
237 fPlotList.remove(plot); 237 fPlotList.remove(plot);
238 fPlotList.addToHead(plot); 238 fPlotList.addToHead(plot);
239 } 239 }
240 240
241 inline void processEviction(AtlasID); 241 inline void processEviction(AtlasID);
242 242
243 GrTexture* fTexture; 243 GrTexture* fTexture;
244 int fPlotWidth;
245 int fPlotHeight;
244 SkDEBUGCODE(uint32_t fNumPlots;) 246 SkDEBUGCODE(uint32_t fNumPlots;)
245 247
246 uint64_t fAtlasGeneration; 248 uint64_t fAtlasGeneration;
247 249
248 struct EvictionData { 250 struct EvictionData {
249 EvictionFunc fFunc; 251 EvictionFunc fFunc;
250 void* fData; 252 void* fData;
251 }; 253 };
252 254
253 SkTDArray<EvictionData> fEvictionCallbacks; 255 SkTDArray<EvictionData> fEvictionCallbacks;
254 // allocated array of GrBatchPlots 256 // allocated array of GrBatchPlots
255 SkAutoTUnref<BatchPlot>* fPlotArray; 257 SkAutoTUnref<BatchPlot>* fPlotArray;
256 // LRU list of GrPlots (MRU at head - LRU at tail) 258 // LRU list of GrPlots (MRU at head - LRU at tail)
257 GrBatchPlotList fPlotList; 259 GrBatchPlotList fPlotList;
258 }; 260 };
259 261
260 #endif 262 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrBatchAtlas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698