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

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

Issue 639873002: Use presence of a content key as non-scratch indicator (Closed) Base URL: https://skia.googlesource.com/skia.git@pp
Patch Set: more Created 6 years, 2 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 | « src/gpu/GrResourceCache.cpp ('k') | src/gpu/GrResourceCache2.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 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrResourceCache2_DEFINED 9 #ifndef GrResourceCache2_DEFINED
10 #define GrResourceCache2_DEFINED 10 #define GrResourceCache2_DEFINED
11 11
12 #include "GrGpuResource.h" 12 #include "GrGpuResource.h"
robertphillips 2014/10/08 17:29:31 Do we need these two new headers here ?
bsalomon 2014/10/08 17:32:52 Nope, this was paring down of a larger CL, forgot
13 #include "GrResourceCache.h"
13 #include "GrResourceKey.h" 14 #include "GrResourceKey.h"
15 #include "SkTDynamicHash.h"
14 #include "SkTInternalLList.h" 16 #include "SkTInternalLList.h"
15 #include "SkTMultiMap.h" 17 #include "SkTMultiMap.h"
16 18
17 /** 19 /**
18 * Eventual replacement for GrResourceCache. Currently it simply holds a list 20 * Eventual replacement for GrResourceCache. Currently it simply holds a list
19 * of all GrGpuResource objects for a GrContext. It is used to invalidate all 21 * of all GrGpuResource objects for a GrContext. It is used to invalidate all
20 * the resources when necessary. 22 * the resources when necessary.
21 */ 23 */
22 class GrResourceCache2 { 24 class GrResourceCache2 {
23 public: 25 public:
(...skipping 29 matching lines...) Expand all
53 }; 55 };
54 typedef SkTMultiMap<GrGpuResource, GrResourceKey, ScratchMapTraits> ScratchM ap; 56 typedef SkTMultiMap<GrGpuResource, GrResourceKey, ScratchMapTraits> ScratchM ap;
55 57
56 int fCount; 58 int fCount;
57 SkTInternalLList<GrGpuResource> fResources; 59 SkTInternalLList<GrGpuResource> fResources;
58 // This map holds all resources that can be used as scratch resources. 60 // This map holds all resources that can be used as scratch resources.
59 ScratchMap fScratchMap; 61 ScratchMap fScratchMap;
60 }; 62 };
61 63
62 #endif 64 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrResourceCache.cpp ('k') | src/gpu/GrResourceCache2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698