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

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

Issue 429593002: Now always use Atlas for layer cache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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/GrLayerCache.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 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 #ifndef GrLayerCache_DEFINED 8 #ifndef GrLayerCache_DEFINED
9 #define GrLayerCache_DEFINED 9 #define GrLayerCache_DEFINED
10 10
11 #define USE_ATLAS 0
12
13 #include "GrAtlas.h" 11 #include "GrAtlas.h"
14 #include "GrPictureUtils.h" 12 #include "GrPictureUtils.h"
15 #include "GrRect.h" 13 #include "GrRect.h"
16 #include "SkChecksum.h" 14 #include "SkChecksum.h"
17 #include "SkTDynamicHash.h" 15 #include "SkTDynamicHash.h"
18 #include "SkMessageBus.h" 16 #include "SkMessageBus.h"
19 17
20 class SkPicture; 18 class SkPicture;
21 19
22 // The layer cache listens for these messages to purge picture-related resources . 20 // The layer cache listens for these messages to purge picture-related resources .
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // Try to find a purgeable plot and clear it out. Return true if a plot 219 // Try to find a purgeable plot and clear it out. Return true if a plot
222 // was purged; false otherwise. 220 // was purged; false otherwise.
223 bool purgePlot(); 221 bool purgePlot();
224 222
225 // for testing 223 // for testing
226 friend class TestingAccess; 224 friend class TestingAccess;
227 int numLayers() const { return fLayerHash.count(); } 225 int numLayers() const { return fLayerHash.count(); }
228 }; 226 };
229 227
230 #endif 228 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrLayerCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698