Index: src/gpu/vk/GrVkGpuCommandBuffer.h |
diff --git a/src/gpu/vk/GrVkGpuCommandBuffer.h b/src/gpu/vk/GrVkGpuCommandBuffer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2d901ca2ca38afcae553ed47a64cc1cb578b481c |
--- /dev/null |
+++ b/src/gpu/vk/GrVkGpuCommandBuffer.h |
@@ -0,0 +1,41 @@ |
+/* |
+* Copyright 2016 Google Inc. |
+* |
+* Use of this source code is governed by a BSD-style license that can be |
+* found in the LICENSE file. |
+*/ |
+ |
+#ifndef GrVkGpuCommandBuffer_DEFINED |
+#define GrVkGpuCommandBuffer_DEFINED |
+ |
+#include "GrGpuCommandBuffer.h" |
+ |
+#include "GrColor.h" |
+ |
+class GrVkGpu; |
+class GrVkRenderPass; |
+class GrVkRenderTarget; |
+class GrVkSecondaryCommandBuffer; |
+ |
+class GrVkGpuCommandBuffer : public GrGpuCommandBuffer { |
+public: |
+ GrVkGpuCommandBuffer(GrVkGpu* gpu, |
+ const GrVkRenderTarget&, |
+ LoadAndStoreOp colorOp, GrColor colorClear, |
+ LoadAndStoreOp stencilOp, GrColor stencilClear); |
+ |
+ virtual ~GrVkGpuCommandBuffer(); |
+ |
+ void end() override; |
+ |
+ void submit() override; |
+ |
+private: |
+ const GrVkRenderPass* fRenderPass; |
+ GrVkSecondaryCommandBuffer* fCommandBuffer; |
+ GrVkGpu* fGpu; |
+ |
+ typedef GrGpuCommandBuffer INHERITED; |
+}; |
+ |
+#endif |