correctly copy constant coverage from GrPaint to GrDrawState
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/21924006
git-svn-id: http://skia.googlecode.com/svn/trunk@10522 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp
index ab800d2..0a56757 100644
--- a/src/gpu/GrDrawState.cpp
+++ b/src/gpu/GrDrawState.cpp
@@ -46,7 +46,6 @@
// These have no equivalent in GrPaint, set them to defaults
fCommon.fBlendConstant = 0x0;
- fCommon.fCoverage = 0xffffffff;
fCommon.fDrawFace = kBoth_DrawFace;
fCommon.fStencilSettings.setDisabled();
this->resetStateFlags();
@@ -55,6 +54,7 @@
this->enableState(GrDrawState::kClip_StateBit);
this->setColor(paint.getColor());
+ this->setCoverage4(paint.getCoverage());
this->setState(GrDrawState::kDither_StateBit, paint.isDither());
this->setState(GrDrawState::kHWAntialias_StateBit, paint.isAntiAlias());