aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-08-30 15:14:04 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-30 19:35:27 +0000
commit195c05b6d5afbd65f803816938e24eebd51292c8 (patch)
tree09464cb77b796259a4ca0d75a32f8ed4d0dcf85a /include/private
parentad8a43f7698071f00ce024a935b0bc04a4b19a41 (diff)
Move several GrContextOptions fields behind GR_TEST_UTILS
Bug: skia: Change-Id: I35bc08ad72fb94d8e47fe342d314c4496b954226 Reviewed-on: https://skia-review.googlesource.com/40881 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include/private')
-rw-r--r--include/private/GrTypesPriv.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/private/GrTypesPriv.h b/include/private/GrTypesPriv.h
index 41a2deaecf..9c5d3c0eb0 100644
--- a/include/private/GrTypesPriv.h
+++ b/include/private/GrTypesPriv.h
@@ -608,4 +608,26 @@ T* const* unique_ptr_address_as_pointer_address(std::unique_ptr<T> const* up) {
*/
typedef uint64_t GrFence;
+/**
+ * Used to include or exclude specific GPU path renderers for testing purposes.
+ */
+enum class GpuPathRenderers {
+ kNone = 0, // Always use sofware masks and/or GrDefaultPathRenderer.
+ kDashLine = 1 << 0,
+ kStencilAndCover = 1 << 1,
+ kMSAA = 1 << 2,
+ kAAConvex = 1 << 3,
+ kAALinearizing = 1 << 4,
+ kSmall = 1 << 5,
+ kCoverageCounting = 1 << 6,
+ kTessellating = 1 << 7,
+
+ kAll = (kTessellating | (kTessellating - 1)),
+
+ // Temporarily disabling CCPR by default until it has had a time to soak.
+ kDefault = kAll & ~kCoverageCounting,
+};
+
+GR_MAKE_BITFIELD_CLASS_OPS(GpuPathRenderers)
+
#endif