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

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

Issue 2256843002: Don't add the resolve attachment to vulkan render passes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nit Created 4 years, 3 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/vk/GrVkRenderTarget.cpp ('k') | src/gpu/vk/GrVkResourceProvider.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 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 GrVkRenderPass* getCompatibleRenderPass() const { 201 GrVkRenderPass* getCompatibleRenderPass() const {
202 // The first GrVkRenderpass should always exist since we create the basic load store 202 // The first GrVkRenderpass should always exist since we create the basic load store
203 // render pass on create 203 // render pass on create
204 SkASSERT(fRenderPasses[0]); 204 SkASSERT(fRenderPasses[0]);
205 return fRenderPasses[0]; 205 return fRenderPasses[0];
206 } 206 }
207 207
208 GrVkRenderPass* getRenderPass(const GrVkGpu* gpu, 208 GrVkRenderPass* getRenderPass(const GrVkGpu* gpu,
209 const GrVkRenderPass::LoadStoreOps& colorO ps, 209 const GrVkRenderPass::LoadStoreOps& colorO ps,
210 const GrVkRenderPass::LoadStoreOps& resolv eOps,
211 const GrVkRenderPass::LoadStoreOps& stenci lOps); 210 const GrVkRenderPass::LoadStoreOps& stenci lOps);
212 211
213 void releaseResources(const GrVkGpu* gpu); 212 void releaseResources(const GrVkGpu* gpu);
214 void abandonResources(); 213 void abandonResources();
215 214
216 private: 215 private:
217 SkSTArray<4, GrVkRenderPass*> fRenderPasses; 216 SkSTArray<4, GrVkRenderPass*> fRenderPasses;
218 int fLastReturnedIndex; 217 int fLastReturnedIndex;
219 }; 218 };
220 219
(...skipping 21 matching lines...) Expand all
242 241
243 // Cache of GrVkPipelineStates 242 // Cache of GrVkPipelineStates
244 PipelineStateCache* fPipelineStateCache; 243 PipelineStateCache* fPipelineStateCache;
245 244
246 SkSTArray<4, GrVkDescriptorSetManager, true> fDescriptorSetManagers; 245 SkSTArray<4, GrVkDescriptorSetManager, true> fDescriptorSetManagers;
247 246
248 GrVkDescriptorSetManager::Handle fUniformDSHandle; 247 GrVkDescriptorSetManager::Handle fUniformDSHandle;
249 }; 248 };
250 249
251 #endif 250 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkRenderTarget.cpp ('k') | src/gpu/vk/GrVkResourceProvider.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698