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

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

Issue 2353563003: Create GrVkCopyPipeline class (Closed)
Patch Set: add comment about renderpass 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 | « gyp/gpu.gypi ('k') | src/gpu/vk/GrVkCopyPipeline.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef GrVkCopyPipeline_DEFINED
9 #define GrVkCopyPipeline_DEFINED
10
11 #include "GrVkPipeline.h"
12
13 class GrVkCopyPipeline : public GrVkPipeline {
14 public:
15 // We expect the passed in renderPass to be stored on the GrVkResourceProvid er and not a local
16 // object of the client.
17 static GrVkCopyPipeline* Create(GrVkGpu* gpu,
18 VkPipelineShaderStageCreateInfo* shaderStage Info,
19 VkPipelineLayout pipelineLayout,
20 int numSamples,
21 const GrVkRenderPass& renderPass,
22 VkPipelineCache cache);
23
24 bool isCompatible(const GrVkRenderPass& rp) const;
25
26 #ifdef SK_TRACE_VK_RESOURCES
27 void dumpInfo() const override {
28 SkDebugf("GrVkCopyPipeline: %d (%d refs)\n", fPipeline, this->getRefCnt( ));
29 }
30 #endif
31
32 private:
33 GrVkCopyPipeline(VkPipeline pipeline, const GrVkRenderPass* renderPass)
34 : INHERITED(pipeline)
35 , fRenderPass(renderPass) {
36 }
37
38 const GrVkRenderPass* fRenderPass;
39
40 typedef GrVkPipeline INHERITED;
41 };
42
43 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/vk/GrVkCopyPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698