aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpuCommandBuffer.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-08-29 07:24:09 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-29 11:43:01 +0000
commit6b47c7d19fcc95d2c3dbce582a8d68bb3bf6ba2a (patch)
treeafda9768b3f6fe651113708c32d586c7a8951d54 /src/gpu/GrGpuCommandBuffer.h
parent5aa3a84d27ddaa787b301428940ec3035d7c0bef (diff)
Store discard request on the opList and remove GrDiscardOp (take 3)
Change-Id: Ided58e0110b0b4e611ab65f46c18a6ae2b85f1bc Reviewed-on: https://skia-review.googlesource.com/39340 Reviewed-by: Robert Phillips <robertphillips@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrGpuCommandBuffer.h')
-rw-r--r--src/gpu/GrGpuCommandBuffer.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/gpu/GrGpuCommandBuffer.h b/src/gpu/GrGpuCommandBuffer.h
index 07e823fd11..a80f6e494e 100644
--- a/src/gpu/GrGpuCommandBuffer.h
+++ b/src/gpu/GrGpuCommandBuffer.h
@@ -71,28 +71,17 @@ private:
*/
class GrGpuRTCommandBuffer : public 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;
};
virtual ~GrGpuRTCommandBuffer() {}