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

Side by Side Diff: src/gpu/vk/GrVkResourceProvider.h

Issue 1927583002: Repurpose Release_Developer BUILDTYPE and remove SK_DEVELOPER. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix typo Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 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 GrVkResourceProvider_DEFINED 8 #ifndef GrVkResourceProvider_DEFINED
9 #define GrVkResourceProvider_DEFINED 9 #define GrVkResourceProvider_DEFINED
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // resource usages. 76 // resource usages.
77 void destroyResources(); 77 void destroyResources();
78 78
79 // Abandon any cached resources. To be used when the context/VkDevice is los t. 79 // Abandon any cached resources. To be used when the context/VkDevice is los t.
80 // For resource tracing to work properly, this should be called after unrefi ng all other 80 // For resource tracing to work properly, this should be called after unrefi ng all other
81 // resource usages. 81 // resource usages.
82 void abandonResources(); 82 void abandonResources();
83 83
84 private: 84 private:
85 85
86 #ifdef SK_DEVELOPER 86 #ifdef SK_DEBUG
87 #define GR_PIPELINE_STATE_CACHE_STATS 87 #define GR_PIPELINE_STATE_CACHE_STATS
88 #endif 88 #endif
89 89
90 class PipelineStateCache : public ::SkNoncopyable { 90 class PipelineStateCache : public ::SkNoncopyable {
91 public: 91 public:
92 PipelineStateCache(GrVkGpu* gpu); 92 PipelineStateCache(GrVkGpu* gpu);
93 ~PipelineStateCache(); 93 ~PipelineStateCache();
94 94
95 void abandon(); 95 void abandon();
96 void release(); 96 void release();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 // Stores GrVkSampler objects that we've already created so we can reuse the m across multiple 137 // Stores GrVkSampler objects that we've already created so we can reuse the m across multiple
138 // GrVkPipelineStates 138 // GrVkPipelineStates
139 SkTDynamicHash<GrVkSampler, uint16_t> fSamplers; 139 SkTDynamicHash<GrVkSampler, uint16_t> fSamplers;
140 140
141 // Cache of GrVkPipelineStates 141 // Cache of GrVkPipelineStates
142 PipelineStateCache* fPipelineStateCache; 142 PipelineStateCache* fPipelineStateCache;
143 }; 143 };
144 144
145 #endif 145 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698