aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrProgramDesc.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-04-27 10:07:04 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-27 10:07:04 -0700
commitd79c549467e5e7be025e38357f179b7965ed2ec3 (patch)
tree0720748cd608879aaca87f563fdb795085719bc3 /src/gpu/GrProgramDesc.h
parentf0c000df552a3ab51da6cd4997f5878825dec97e (diff)
Make non-AA hairline stroke rects snap to pixels centers so they close.
Diffstat (limited to 'src/gpu/GrProgramDesc.h')
-rw-r--r--src/gpu/GrProgramDesc.h3
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;