aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-08-09 13:31:36 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-09 18:11:34 +0000
commitb681a0f1b0acebe36130fd463d14016d48295b97 (patch)
treeb069332fad7ccacb29ed0c080c4d423824ae7e0f /include/private
parentc270423de16f54af26147280c406b8b74ab07046 (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 'include/private')
-rw-r--r--include/private/GrTypesPriv.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/private/GrTypesPriv.h b/include/private/GrTypesPriv.h
index 05c1341ca2..699fc05e13 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 */