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

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

Issue 1756493002: Use VkPipelineCaches during VkPipeline creation (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix mipmap issues Created 4 years, 9 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/GrVkGpu.cpp ('k') | src/gpu/vk/GrVkPipeline.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 GrVkPipeline_DEFINED 8 #ifndef GrVkPipeline_DEFINED
9 #define GrVkPipeline_DEFINED 9 #define GrVkPipeline_DEFINED
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 class GrVkPipeline : public GrVkResource { 23 class GrVkPipeline : public GrVkResource {
24 public: 24 public:
25 static GrVkPipeline* Create(GrVkGpu* gpu, 25 static GrVkPipeline* Create(GrVkGpu* gpu,
26 const GrPipeline& pipeline, 26 const GrPipeline& pipeline,
27 const GrPrimitiveProcessor& primProc, 27 const GrPrimitiveProcessor& primProc,
28 VkPipelineShaderStageCreateInfo* shaderStageInfo , 28 VkPipelineShaderStageCreateInfo* shaderStageInfo ,
29 int shaderStageCount, 29 int shaderStageCount,
30 GrPrimitiveType primitiveType, 30 GrPrimitiveType primitiveType,
31 const GrVkRenderPass& renderPass, 31 const GrVkRenderPass& renderPass,
32 VkPipelineLayout layout); 32 VkPipelineLayout layout,
33 VkPipelineCache cache);
33 34
34 VkPipeline pipeline() const { return fPipeline; } 35 VkPipeline pipeline() const { return fPipeline; }
35 36
36 private: 37 private:
37 GrVkPipeline(VkPipeline pipeline) : INHERITED(), fPipeline(pipeline) {} 38 GrVkPipeline(VkPipeline pipeline) : INHERITED(), fPipeline(pipeline) {}
38 39
39 GrVkPipeline(const GrVkPipeline&); 40 GrVkPipeline(const GrVkPipeline&);
40 GrVkPipeline& operator=(const GrVkPipeline&); 41 GrVkPipeline& operator=(const GrVkPipeline&);
41 42
42 void freeGPUData(const GrVkGpu* gpu) const override; 43 void freeGPUData(const GrVkGpu* gpu) const override;
43 44
44 VkPipeline fPipeline; 45 VkPipeline fPipeline;
45 46
46 typedef GrVkResource INHERITED; 47 typedef GrVkResource INHERITED;
47 }; 48 };
48 49
49 #endif 50 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkGpu.cpp ('k') | src/gpu/vk/GrVkPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698