diff options
author | 2016-06-08 14:02:27 -0700 | |
---|---|---|
committer | 2016-06-08 14:02:27 -0700 | |
commit | 066df7ca911b65d416783f3bec6f4f1662948ad5 (patch) | |
tree | 3ab14fe44d84871e83831d5686b3ab1067dae665 /src/gpu/gl/GrGLGpuCommandBuffer.h | |
parent | 28215d44b3f9d100ba4420df43adb72cdff7d2b3 (diff) |
Add GpuCommandBuffer support.
Currently this is not actually hooked into the system.
To give some context, in a follow up CL I'll add this to GrDrawTarget.
For this I will move the gpu onDraw command to the GpuCommandBuffer as well.
For GL this will end up just being a pass through to a non virtual draw(...)
on GrGLGpu, and for vulkan it will mostly do what it currently does but
adding commands to the secondary command buffer instead.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2038583002
Review-Url: https://codereview.chromium.org/2038583002
Diffstat (limited to 'src/gpu/gl/GrGLGpuCommandBuffer.h')
-rw-r--r-- | src/gpu/gl/GrGLGpuCommandBuffer.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLGpuCommandBuffer.h b/src/gpu/gl/GrGLGpuCommandBuffer.h new file mode 100644 index 0000000000..8925322d4a --- /dev/null +++ b/src/gpu/gl/GrGLGpuCommandBuffer.h @@ -0,0 +1,33 @@ +/* +* 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 GrGLGpuCommandBuffer_DEFINED +#define GrGLGpuCommandBuffer_DEFINED + +#include "GrGpuCommandBuffer.h" + +class GrGLGpu; + +class GrGLGpuCommandBuffer : public GrGpuCommandBuffer { +public: + GrGLGpuCommandBuffer(GrGLGpu* gpu) /*: fGpu(gpu)*/ {} + + virtual ~GrGLGpuCommandBuffer() {} + + void end() override {} + + void submit() override {} + +private: + // commented out to appease clang compiler warning about unused private field + // GrGLGpu* fGpu; + + typedef GrGpuCommandBuffer INHERITED; +}; + +#endif + |