aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-15 18:05:50 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-15 18:05:50 +0000
commit4b2d3f30d047435263642ef8ed170a37ca642c1b (patch)
treed733120ac855709fe7255b57f5575bf56ca9aba2 /src
parent9e25dbf589539dd44244bc2581590bd7591e17a2 (diff)
make "Partial pixel coverage will be incorrectly blended" debug message conditional
git-svn-id: http://skia.googlecode.com/svn/trunk@3945 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrContext.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index aaf2ae462b..5ec6511b9f 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -35,6 +35,13 @@
// limitations) should we disable AA or draw wrong?
#define DISABLE_COVERAGE_AA_FOR_BLEND 1
+#if GR_DEBUG
+ // change this to a 1 to see notifications when partial coverage fails
+ #define GR_DEBUG_PARTIAL_COVERAGE_CHECK 0
+#else
+ #define GR_DEBUG_PARTIAL_COVERAGE_CHECK 0
+#endif
+
static const size_t MAX_TEXTURE_CACHE_COUNT = 256;
static const size_t MAX_TEXTURE_CACHE_BYTES = 16 * 1024 * 1024;
@@ -1873,7 +1880,7 @@ void GrContext::setPaint(const GrPaint& paint) {
fDrawState->setBlendFunc(paint.fSrcBlendCoeff, paint.fDstBlendCoeff);
fDrawState->setColorFilter(paint.fColorFilterColor, paint.fColorFilterXfermode);
fDrawState->setCoverage(paint.fCoverage);
-#if GR_DEBUG
+#if GR_DEBUG_PARTIAL_COVERAGE_CHECK
if ((paint.getActiveMaskStageMask() || 0xff != paint.fCoverage) &&
!fGpu->canApplyCoverage()) {
GrPrintf("Partial pixel coverage will be incorrectly blended.\n");