diff options
author | Timothy Liang <timliang@google.com> | 2018-07-19 09:49:46 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-19 14:25:45 +0000 |
commit | e70604ea8b5216621e50f7063edf7d56ee95498d (patch) | |
tree | 41c70c589709187c049156918ee793bb70d170f1 /src/gpu/mtl/GrMtlGpu.mm | |
parent | 84364ee71dad9adeb1beb99b19e27d0c32e6c429 (diff) |
created stub for metal gpu command buffer
Bug: skia:
Change-Id: I11ffb1126ea4665c456c2b74e98d9e9021a5aca2
Reviewed-on: https://skia-review.googlesource.com/141080
Commit-Queue: Timothy Liang <timliang@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlGpu.mm')
-rw-r--r-- | src/gpu/mtl/GrMtlGpu.mm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gpu/mtl/GrMtlGpu.mm b/src/gpu/mtl/GrMtlGpu.mm index 0295659b36..892e4bc5a1 100644 --- a/src/gpu/mtl/GrMtlGpu.mm +++ b/src/gpu/mtl/GrMtlGpu.mm @@ -7,6 +7,7 @@ #include "GrMtlGpu.h" +#include "GrMtlGpuCommandBuffer.h" #include "GrMtlTexture.h" #include "GrMtlTextureRenderTarget.h" #include "GrMtlUtil.h" @@ -97,6 +98,18 @@ GrMtlGpu::GrMtlGpu(GrContext* context, const GrContextOptions& options, fCmdBuffer = [fQueue commandBuffer]; } +GrGpuRTCommandBuffer* GrMtlGpu::createCommandBuffer( + GrRenderTarget* renderTarget, GrSurfaceOrigin origin, + const GrGpuRTCommandBuffer::LoadAndStoreInfo& colorInfo, + const GrGpuRTCommandBuffer::StencilLoadAndStoreInfo& stencilInfo) { + return new GrMtlGpuRTCommandBuffer(this, renderTarget, origin, colorInfo, stencilInfo); +} + +GrGpuTextureCommandBuffer* GrMtlGpu::createCommandBuffer(GrTexture* texture, + GrSurfaceOrigin origin) { + return new GrMtlGpuTextureCommandBuffer(this, texture, origin); +} + void GrMtlGpu::submitCommandBuffer(SyncQueue sync) { SkASSERT(fCmdBuffer); [fCmdBuffer commit]; |