Make printf in GrContext about partial pixel coverage be debug-only

git-svn-id: http://skia.googlecode.com/svn/trunk@3516 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2012-03-28 15:35:05 +00:00
parent d4df21793d
commit 95cd7bdf2b

View File

@ -1943,10 +1943,12 @@ void GrContext::setPaint(const GrPaint& paint) {
fDrawState->setColorFilter(paint.fColorFilterColor, paint.fColorFilterXfermode);
fDrawState->setCoverage(paint.fCoverage);
#if GR_DEBUG
if ((paint.getActiveMaskStageMask() || 0xffffffff != paint.fCoverage) &&
!fGpu->canApplyCoverage()) {
GrPrintf("Partial pixel coverage will be incorrectly blended.\n");
}
#endif
}
GrDrawTarget* GrContext::prepareToDraw(const GrPaint& paint,