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

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

Issue 2035853002: Add support for finding/creating general GrVkRenderPass from the VkResourceProvider. (Closed) Base URL: https://skia.googlesource.com/skia.git@renderPass
Patch Set: nits Created 4 years, 6 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/GrVkRenderPass.cpp ('k') | src/gpu/vk/GrVkResourceProvider.h » ('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 2015 Google Inc. 2 * Copyright 2015 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 8
9 #ifndef GrVkRenderTarget_DEFINED 9 #ifndef GrVkRenderTarget_DEFINED
10 #define GrVkRenderTarget_DEFINED 10 #define GrVkRenderTarget_DEFINED
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 ResolveType getResolveType() const override { 58 ResolveType getResolveType() const override {
59 return kCanResolve_ResolveType; 59 return kCanResolve_ResolveType;
60 } 60 }
61 61
62 bool canAttemptStencilAttachment() const override { 62 bool canAttemptStencilAttachment() const override {
63 return true; 63 return true;
64 } 64 }
65 65
66 GrBackendObject getRenderTargetHandle() const override; 66 GrBackendObject getRenderTargetHandle() const override;
67 67
68 // Returns the total number of attachments
69 void getAttachmentsDescriptor(GrVkRenderPass::AttachmentsDescriptor* desc, 68 void getAttachmentsDescriptor(GrVkRenderPass::AttachmentsDescriptor* desc,
70 GrVkRenderPass::AttachmentFlags* flags) const; 69 GrVkRenderPass::AttachmentFlags* flags) const;
71 70
72 void addResources(GrVkCommandBuffer& commandBuffer) const; 71 void addResources(GrVkCommandBuffer& commandBuffer) const;
73 72
74 protected: 73 protected:
75 GrVkRenderTarget(GrVkGpu* gpu, 74 GrVkRenderTarget(GrVkGpu* gpu,
76 const GrSurfaceDesc& desc, 75 const GrSurfaceDesc& desc,
77 const GrVkImageInfo& info, 76 const GrVkImageInfo& info,
78 const GrVkImageInfo& msaaInfo, 77 const GrVkImageInfo& msaaInfo,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 int fColorValuesPerPixel; 133 int fColorValuesPerPixel;
135 134
136 // This is a cached pointer to a simple render pass. The render target shoul d unref it 135 // This is a cached pointer to a simple render pass. The render target shoul d unref it
137 // once it is done with it. 136 // once it is done with it.
138 const GrVkRenderPass* fCachedSimpleRenderPass; 137 const GrVkRenderPass* fCachedSimpleRenderPass;
139 // This is a handle to be used to quickly get compatible GrVkRenderPasses fo r this render target 138 // This is a handle to be used to quickly get compatible GrVkRenderPasses fo r this render target
140 GrVkResourceProvider::CompatibleRPHandle fCompatibleRPHandle; 139 GrVkResourceProvider::CompatibleRPHandle fCompatibleRPHandle;
141 }; 140 };
142 141
143 #endif 142 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkRenderPass.cpp ('k') | src/gpu/vk/GrVkResourceProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698