diff options
author | Robert Phillips <robertphillips@google.com> | 2017-08-08 18:00:03 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-08 22:32:36 +0000 |
commit | 952144753dc31d9d935683123cae43fca483bade (patch) | |
tree | 96c33ad4c1face6aa9f3e55214f7f3518987c013 /src/gpu/mtl/GrMtlGpu.h | |
parent | 8d8b016f5241dd04c48229200ebd44a9a36a2f45 (diff) |
Add explicit clear of stencil buffer before opLists that use them
Change-Id: I9e2468e1331c6593dbc6da3ad510f08d1c589e8d
Reviewed-on: https://skia-review.googlesource.com/32041
Commit-Queue: Stan Iliev <stani@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlGpu.h')
-rw-r--r-- | src/gpu/mtl/GrMtlGpu.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gpu/mtl/GrMtlGpu.h b/src/gpu/mtl/GrMtlGpu.h index 06c2b2fc5e..e6f2ccabb7 100644 --- a/src/gpu/mtl/GrMtlGpu.h +++ b/src/gpu/mtl/GrMtlGpu.h @@ -47,8 +47,10 @@ public: void onQueryMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&, int* effectiveSampleCnt, SamplePattern*) override {} - GrGpuCommandBuffer* createCommandBuffer(const GrGpuCommandBuffer::LoadAndStoreInfo&, - const GrGpuCommandBuffer::LoadAndStoreInfo&) override { + GrGpuCommandBuffer* createCommandBuffer( + GrRenderTarget*, GrSurfaceOrigin, + const GrGpuCommandBuffer::LoadAndStoreInfo&, + const GrGpuCommandBuffer::StencilLoadAndStoreInfo&) override { return nullptr; } @@ -138,7 +140,7 @@ private: return nullptr; } - void clearStencil(GrRenderTarget* target) override {} + void clearStencil(GrRenderTarget* target, int clearValue) override {} GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, GrPixelConfig config, bool isRT) override { |