diff options
author | 2016-04-29 08:44:16 -0700 | |
---|---|---|
committer | 2016-04-29 08:44:16 -0700 | |
commit | 3de75da6d2cea525b0f2adadb3645b974107e4d0 (patch) | |
tree | a9bef71ad0a125cfbca482d50f41b7262672031b /src/gpu/text/GrStencilAndCoverTextContext.cpp | |
parent | b4d46f03db6080da4ad3b228d37e0760c1029015 (diff) |
Use constexpr constructors of GrStencilSettings rather than hacky macro system.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1933053002
Review-Url: https://codereview.chromium.org/1933053002
Diffstat (limited to 'src/gpu/text/GrStencilAndCoverTextContext.cpp')
-rw-r--r-- | src/gpu/text/GrStencilAndCoverTextContext.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gpu/text/GrStencilAndCoverTextContext.cpp b/src/gpu/text/GrStencilAndCoverTextContext.cpp index 8f6b8baa8e..c2c1c569e8 100644 --- a/src/gpu/text/GrStencilAndCoverTextContext.cpp +++ b/src/gpu/text/GrStencilAndCoverTextContext.cpp @@ -585,13 +585,13 @@ void GrStencilAndCoverTextContext::TextRun::draw(GrContext* ctx, if (fInstanceData->count()) { pipelineBuilder->setState(GrPipelineBuilder::kHWAntialias_Flag, fFont.isAntiAlias()); - GR_STATIC_CONST_SAME_STENCIL(kStencilPass, - kZero_StencilOp, - kKeep_StencilOp, - kNotEqual_StencilFunc, - 0xffff, - 0x0000, - 0xffff); + static constexpr GrStencilSettings kStencilPass( + kZero_StencilOp, + kKeep_StencilOp, + kNotEqual_StencilFunc, + 0xffff, + 0x0000, + 0xffff); *pipelineBuilder->stencil() = kStencilPass; |