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/GrGpu.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/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index 1da8d0e501..fa5f372e14 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -371,8 +371,9 @@ public: // awkward workaround that goes away after MDB is complete and the render target is known from // the GrRenderTargetOpList. virtual GrGpuCommandBuffer* createCommandBuffer( - const GrGpuCommandBuffer::LoadAndStoreInfo& colorInfo, - const GrGpuCommandBuffer::LoadAndStoreInfo& stencilInfo) = 0; + GrRenderTarget*, GrSurfaceOrigin, + const GrGpuCommandBuffer::LoadAndStoreInfo&, + const GrGpuCommandBuffer::StencilLoadAndStoreInfo&) = 0; // Called by GrDrawingManager when flushing. // Provides a hook for post-flush actions (e.g. Vulkan command buffer submits). This will also @@ -479,7 +480,7 @@ public: int width, int height) = 0; // clears target's entire stencil buffer to 0 - virtual void clearStencil(GrRenderTarget* target) = 0; + virtual void clearStencil(GrRenderTarget* target, int clearValue) = 0; // Determines whether a texture will need to be rescaled in order to be used with the // GrSamplerParams. This variation is called when the caller will create a new texture using the |