From 9acfc6cac2c68ab48121b321ad4e2d14f03224c7 Mon Sep 17 00:00:00 2001 From: Chris Dalton Date: Thu, 26 Jul 2018 12:34:49 -0600 Subject: 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 Reviewed-by: Brian Osman Reviewed-by: Brian Salomon --- include/gpu/GrContextOptions.h | 2 +- include/private/GrTypesPriv.h | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'include') 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)) }; /** -- cgit v1.2.3