From bc98ff015b9f087102e92467179cdc2d8a35cabd Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Thu, 15 Aug 2013 18:16:41 +0000 Subject: [PATCH] Enable coverage when drawing to the stencil buffer. Currently, we set kEmitTransBlack_BlendOptFlag when drawing to the stencil buffer - but that prevents masks from being drawn correctly as they receive full coverage and no fragments get discarded. R=bsalomon@google.com, robertphillips@google.com Author: fmalita@chromium.org Review URL: https://chromiumcodereview.appspot.com/23197003 git-svn-id: http://skia.googlecode.com/svn/trunk@10745 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/GrDrawState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp index 0a567573cb..6c1fa24ec8 100644 --- a/src/gpu/GrDrawState.cpp +++ b/src/gpu/GrDrawState.cpp @@ -327,7 +327,7 @@ GrDrawState::BlendOptFlags GrDrawState::getBlendOpts(bool forceCoverage, if ((kZero_GrBlendCoeff == *srcCoeff && dstCoeffIsOne) || covIsZero) { if (this->getStencil().doesWrite()) { return kDisableBlend_BlendOptFlag | - kEmitTransBlack_BlendOptFlag; + kEmitCoverage_BlendOptFlag; } else { return kSkipDraw_BlendOptFlag; }