diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-10 15:17:58 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-10 15:17:58 +0000 |
commit | 1983f39f1bf6295c96c0f1f7ead9f568923390bc (patch) | |
tree | 80e69c4a86f8dffe0cd23f5931d6dc1381e29dd1 | |
parent | 96e96dfd1edea2ceaf0311fce71cddae50175086 (diff) |
Make a bunch of GrPrintfs be debug-only
git-svn-id: http://skia.googlecode.com/svn/trunk@2444 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | gpu/src/GrContext.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gpu/src/GrContext.cpp b/gpu/src/GrContext.cpp index 3f5ab5471b..6ffda11854 100644 --- a/gpu/src/GrContext.cpp +++ b/gpu/src/GrContext.cpp @@ -677,7 +677,9 @@ bool GrContext::doOffscreenAA(GrDrawTarget* target, return false; } if (disable_coverage_aa_for_blend(target)) { +#if GR_DEBUG GrPrintf("Turning off AA to correctly apply blend.\n"); +#endif return false; } return true; @@ -1178,7 +1180,9 @@ static bool apply_aa_to_rect(GrDrawTarget* target, if (!target->canTweakAlphaForCoverage()) { if (target->getCaps().fSupportPerVertexCoverage) { if (disable_coverage_aa_for_blend(target)) { +#if GR_DEBUG GrPrintf("Turning off AA to correctly apply blend.\n"); +#endif return false; } else { *useVertexCoverage = true; @@ -1491,13 +1495,17 @@ void GrContext::drawPath(const GrPaint& paint, const GrPath& path, // aa. If we have some future driver-mojo path AA that can do the right // thing WRT to the blend then we'll need some query on the PR. if (disable_coverage_aa_for_blend(target)) { - GrPrintf("Turning off AA to correctly apply blend.\n"); +#if GR_DEBUG + GrPrintf("Turning off AA to correctly apply blend.\n") +#endif target->disableState(GrDrawTarget::kAntialias_StateBit); } GrPathRenderer* pr = this->getPathRenderer(target, path, fill); if (NULL == pr) { +#if GR_DEBUG GrPrintf("Unable to find path renderer compatible with path.\n"); +#endif return; } |