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/GrGpuCommandBuffer.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/GrGpuCommandBuffer.h')
-rw-r--r-- | src/gpu/GrGpuCommandBuffer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/GrGpuCommandBuffer.h b/src/gpu/GrGpuCommandBuffer.h index a50901ac58..1be361f81d 100644 --- a/src/gpu/GrGpuCommandBuffer.h +++ b/src/gpu/GrGpuCommandBuffer.h @@ -53,9 +53,17 @@ public: GrColor fClearColor; }; + // Load-time clears of the stencil buffer are always to 0 so we don't store + // an 'fStencilClearValue' + struct StencilLoadAndStoreInfo { + LoadOp fLoadOp; + StoreOp fStoreOp; + }; + GrGpuCommandBuffer() {} virtual ~GrGpuCommandBuffer() {} + virtual void begin() = 0; // Signals the end of recording to the command buffer and that it can now be submitted. virtual void end() = 0; |