diff options
author | Robert Phillips <robertphillips@google.com> | 2017-08-09 13:31:36 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-09 18:11:34 +0000 |
commit | b681a0f1b0acebe36130fd463d14016d48295b97 (patch) | |
tree | b069332fad7ccacb29ed0c080c4d423824ae7e0f /src/gpu/GrGpuCommandBuffer.h | |
parent | c270423de16f54af26147280c406b8b74ab07046 (diff) |
Store discard request on the opList and remove GrDiscardOp
Change-Id: Ic1f76bb91c16b23df1fe71c07a4d5ad5abf1dc26
Reviewed-on: https://skia-review.googlesource.com/32640
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrGpuCommandBuffer.h')
-rw-r--r-- | src/gpu/GrGpuCommandBuffer.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/src/gpu/GrGpuCommandBuffer.h b/src/gpu/GrGpuCommandBuffer.h index 31e9a546d5..9e3c00ba5b 100644 --- a/src/gpu/GrGpuCommandBuffer.h +++ b/src/gpu/GrGpuCommandBuffer.h @@ -30,28 +30,17 @@ struct SkRect; */ class GrGpuCommandBuffer { public: - enum class LoadOp { - kLoad, - kClear, - kDiscard, - }; - - enum class StoreOp { - kStore, - kDiscard, - }; - struct LoadAndStoreInfo { - LoadOp fLoadOp; - StoreOp fStoreOp; - GrColor fClearColor; + GrLoadOp fLoadOp; + GrStoreOp fStoreOp; + 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; + GrLoadOp fLoadOp; + GrStoreOp fStoreOp; }; GrGpuCommandBuffer(GrRenderTarget* rt, GrSurfaceOrigin origin) |