diff options
author | Robert Phillips <robertphillips@google.com> | 2017-08-29 07:24:09 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-29 11:43:01 +0000 |
commit | 6b47c7d19fcc95d2c3dbce582a8d68bb3bf6ba2a (patch) | |
tree | afda9768b3f6fe651113708c32d586c7a8951d54 /include | |
parent | 5aa3a84d27ddaa787b301428940ec3035d7c0bef (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 'include')
-rw-r--r-- | include/private/GrTypesPriv.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/private/GrTypesPriv.h b/include/private/GrTypesPriv.h index b9b2cf7807..41a2deaecf 100644 --- a/include/private/GrTypesPriv.h +++ b/include/private/GrTypesPriv.h @@ -23,6 +23,23 @@ using GrStdSteadyClock = std::chrono::monotonic_clock; using GrStdSteadyClock = std::chrono::steady_clock; #endif +/** This enum is used to specify the load operation to be used when an + * opList/GrGpuCommandBuffer begins execution. + */ +enum class GrLoadOp { + kLoad, + kClear, + kDiscard, +}; + +/** This enum is used to specify the store operation to be used when an + * opList/GrGpuCommandBuffer ends execution. + */ +enum class GrStoreOp { + kStore, + kDiscard, +}; + /** This enum indicates the type of antialiasing to be performed. */ enum class GrAAType : unsigned { /** No antialiasing */ |