From 95cd7bdf2b4dee54739f0a375fe99a02f86178b0 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Wed, 28 Mar 2012 15:35:05 +0000 Subject: [PATCH] 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 --- src/gpu/GrContext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 58d3ad9..0bcecd6 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -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, -- 2.7.4