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

Side by Side Diff: src/gpu/vk/GrVkGpuCommandBuffer.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 unified diff | Download patch
« no previous file with comments | « src/gpu/vk/GrVkGpu.cpp ('k') | src/gpu/vk/GrVkGpuCommandBuffer.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 GrVkGpuCommandBuffer_DEFINED
9 #define GrVkGpuCommandBuffer_DEFINED
10
11 #include "GrGpuCommandBuffer.h"
12
13 #include "GrColor.h"
14
15 class GrVkGpu;
16 class GrVkRenderPass;
17 class GrVkRenderTarget;
18 class GrVkSecondaryCommandBuffer;
19
20 class GrVkGpuCommandBuffer : public GrGpuCommandBuffer {
21 public:
22 GrVkGpuCommandBuffer(GrVkGpu* gpu,
23 const GrVkRenderTarget&,
24 LoadAndStoreOp colorOp, GrColor colorClear,
25 LoadAndStoreOp stencilOp, GrColor stencilClear);
26
27 virtual ~GrVkGpuCommandBuffer();
28
29 void end() override;
30
31 void submit() override;
32
33 private:
34 const GrVkRenderPass* fRenderPass;
35 GrVkSecondaryCommandBuffer* fCommandBuffer;
36 GrVkGpu* fGpu;
37
38 typedef GrGpuCommandBuffer INHERITED;
39 };
40
41 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkGpu.cpp ('k') | src/gpu/vk/GrVkGpuCommandBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698