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

Unified Diff: src/gpu/vk/GrVkResourceProvider.h

Issue 2274663005: Add GrVkCopyPipeline to handle vulkan copies as draws (Closed) Base URL: https://skia.googlesource.com/skia.git@compatibleCopyDS
Patch Set: indent nits 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/vk/GrVkPipelineStateBuilder.cpp ('k') | src/gpu/vk/GrVkResourceProvider.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkResourceProvider.h
diff --git a/src/gpu/vk/GrVkResourceProvider.h b/src/gpu/vk/GrVkResourceProvider.h
index 19d493af92bf9772c70d9c6a908d27a6a5ffb6ad..b9e98e72ccd45c15ac2ff4ad93e4649a08a9e591 100644
--- a/src/gpu/vk/GrVkResourceProvider.h
+++ b/src/gpu/vk/GrVkResourceProvider.h
@@ -26,6 +26,7 @@
class GrPipeline;
class GrPrimitiveProcessor;
class GrTextureParams;
+class GrVkCopyPipeline;
class GrVkGpu;
class GrVkPipeline;
class GrVkPrimaryCommandBuffer;
@@ -50,6 +51,10 @@ public:
const GrVkRenderPass& renderPass,
VkPipelineLayout layout);
+ GrVkCopyPipeline* findOrCreateCopyPipeline(const GrVkRenderTarget* dst,
+ VkPipelineShaderStageCreateInfo*,
+ VkPipelineLayout);
+
GR_DEFINE_RESOURCE_HANDLE_CLASS(CompatibleRPHandle);
// Finds or creates a simple render pass that matches the target, increments the refcount,
@@ -224,6 +229,9 @@ private:
// Central cache for creating pipelines
VkPipelineCache fPipelineCache;
+ // Cache of previously created copy pipelines
+ SkTArray<GrVkCopyPipeline*> fCopyPipelines;
+
SkSTArray<4, CompatibleRenderPassSet> fRenderPassArray;
// Array of PrimaryCommandBuffers that are currently in flight
« no previous file with comments | « src/gpu/vk/GrVkPipelineStateBuilder.cpp ('k') | src/gpu/vk/GrVkResourceProvider.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698