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

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

Issue 2038583002: Add GpuCommandBuffer support. (Closed) Base URL: https://skia.googlesource.com/skia.git@secondaryCB
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/vk/GrVkCommandBuffer.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkGpu.h
diff --git a/src/gpu/vk/GrVkGpu.h b/src/gpu/vk/GrVkGpu.h
index 00055ad87c396acab540cc3eada9b04a91a251ae..cd72c69bd472078aa75c2c81568f0ae40b5f4b78 100644
--- a/src/gpu/vk/GrVkGpu.h
+++ b/src/gpu/vk/GrVkGpu.h
@@ -24,10 +24,11 @@ class GrPipeline;
class GrNonInstancedMesh;
class GrVkBufferImpl;
-class GrVkCommandBuffer;
class GrVkPipeline;
class GrVkPipelineState;
+class GrVkPrimaryCommandBuffer;
class GrVkRenderPass;
+class GrVkSecondaryCommandBuffer;
class GrVkTexture;
struct GrVkInterface;
@@ -90,6 +91,12 @@ public:
void clearStencil(GrRenderTarget* target) override;
+ GrGpuCommandBuffer* createCommandBuffer(const GrRenderTarget& target,
+ GrGpuCommandBuffer::LoadAndStoreOp colorOp,
+ GrColor colorClear,
+ GrGpuCommandBuffer::LoadAndStoreOp stencilOp,
+ GrColor stencilClear) override;
+
void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {}
void addMemoryBarrier(VkPipelineStageFlags srcStageMask,
@@ -109,6 +116,8 @@ public:
return fCompiler;
}
+ void submitSecondaryCommandBuffer(const GrVkSecondaryCommandBuffer*);
+
void finishDrawTarget() override;
void generateMipmap(GrVkTexture* tex) const;
« no previous file with comments | « src/gpu/vk/GrVkCommandBuffer.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698