diff options
author | Chris Dalton <csmartdalton@google.com> | 2018-07-26 12:34:49 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-27 13:30:17 +0000 |
commit | 9acfc6cac2c68ab48121b321ad4e2d14f03224c7 (patch) | |
tree | d741076005affbcc58dba8e5d8897c96810f50b9 /include | |
parent | 55b1e61684548465123e77535c2031c98b4fd66d (diff) |
Add kAAHairline to GpuPathRenderers
With the upcoming ccpr stroking, this will no longer be the only path
renderer that can handle hairlines.
Bug: skia:
Change-Id: I45b30ccd578bee1388a3a07a234af76a19768de6
Reviewed-on: https://skia-review.googlesource.com/142272
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrContextOptions.h | 2 | ||||
-rw-r--r-- | include/private/GrTypesPriv.h | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h index d2377a570b..79f6503dbe 100644 --- a/include/gpu/GrContextOptions.h +++ b/include/gpu/GrContextOptions.h @@ -224,7 +224,7 @@ struct GrContextOptions { /** * Include or exclude specific GPU path renderers. */ - GpuPathRenderers fGpuPathRenderers = GpuPathRenderers::kDefault; + GpuPathRenderers fGpuPathRenderers = GpuPathRenderers::kAll; /** * Disables using multiple texture units to batch multiple images into a single draw on diff --git a/include/private/GrTypesPriv.h b/include/private/GrTypesPriv.h index ee6bfd8097..11093068cf 100644 --- a/include/private/GrTypesPriv.h +++ b/include/private/GrTypesPriv.h @@ -972,14 +972,14 @@ enum class GpuPathRenderers { kNone = 0, // Always use sofware masks and/or GrDefaultPathRenderer. kDashLine = 1 << 0, kStencilAndCover = 1 << 1, - kAAConvex = 1 << 2, - kAALinearizing = 1 << 3, - kSmall = 1 << 4, - kCoverageCounting = 1 << 5, - kTessellating = 1 << 6, - - kAll = (kTessellating | (kTessellating - 1)), - kDefault = kAll + kCoverageCounting = 1 << 2, + kAAHairline = 1 << 3, + kAAConvex = 1 << 4, + kAALinearizing = 1 << 5, + kSmall = 1 << 6, + kTessellating = 1 << 7, + + kAll = (kTessellating | (kTessellating - 1)) }; /** |