diff options
author | bsalomon <bsalomon@google.com> | 2015-04-27 10:07:04 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-27 10:07:04 -0700 |
commit | d79c549467e5e7be025e38357f179b7965ed2ec3 (patch) | |
tree | 0720748cd608879aaca87f563fdb795085719bc3 /src/gpu/GrProgramDesc.h | |
parent | f0c000df552a3ab51da6cd4997f5878825dec97e (diff) |
Make non-AA hairline stroke rects snap to pixels centers so they close.
BUG=skia:3717
Review URL: https://codereview.chromium.org/1101663007
Diffstat (limited to 'src/gpu/GrProgramDesc.h')
-rw-r--r-- | src/gpu/GrProgramDesc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrProgramDesc.h b/src/gpu/GrProgramDesc.h index 9f636a18bc..b306f02e4f 100644 --- a/src/gpu/GrProgramDesc.h +++ b/src/gpu/GrProgramDesc.h @@ -56,10 +56,11 @@ public: uint8_t fFragPosKey; // set by GrGLShaderBuilder if there are // effects that read the fragment position. // Otherwise, 0. - + uint8_t fSnapVerticesToPixelCenters; int8_t fColorEffectCnt; int8_t fCoverageEffectCnt; }; + GR_STATIC_ASSERT(sizeof(KeyHeader) == 4); int numColorEffects() const { return this->header().fColorEffectCnt; |