Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: src/gpu/GrContext.cpp

Issue 23137022: Replace uses of GR_DEBUG by SK_DEBUG. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: common.gypi Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index b35b356b5993a6cb6a8780824b19802b2d16c42a..c5cabe68aea417fe543ebc7e7200129668085cc2 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -46,7 +46,7 @@ SK_CONF_DECLARE(bool, c_Defer, "gpu.deferContext", true,
// limitations) should we disable AA or draw wrong?
#define DISABLE_COVERAGE_AA_FOR_BLEND 1
-#if GR_DEBUG
+#if SK_DEBUG
// change this to a 1 to see notifications when partial coverage fails
#define GR_DEBUG_PARTIAL_COVERAGE_CHECK 0
#else
@@ -695,7 +695,7 @@ static bool apply_aa_to_rect(GrDrawTarget* target,
*useVertexCoverage = false;
if (!target->getDrawState().canTweakAlphaForCoverage()) {
if (disable_coverage_aa_for_blend(target)) {
-#if GR_DEBUG
+#if SK_DEBUG
//GrPrintf("Turning off AA to correctly apply blend.\n");
#endif
return false;
@@ -1113,7 +1113,7 @@ void GrContext::internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath&
// 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)) {
-#if GR_DEBUG
+#if SK_DEBUG
//GrPrintf("Turning off AA to correctly apply blend.\n");
#endif
useAA = false;
@@ -1146,7 +1146,7 @@ void GrContext::internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath&
}
if (NULL == pr) {
-#if GR_DEBUG
+#if SK_DEBUG
GrPrintf("Unable to find path renderer compatible with path.\n");
#endif
return;

Powered by Google App Engine
This is Rietveld 408576698