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

Unified Diff: src/gpu/GrContext.cpp

Issue 695663003: Cleanup: Go with SkDebugf instead of GrPrintf. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « src/gpu/GrBitmapTextContext.cpp ('k') | src/gpu/GrDefaultPathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 98adf1d667df87ac278de9c3225e17f53fdccfcd..754df60b5d2dfee8256a7e71ca460f7039c71873 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -613,13 +613,13 @@ void GrContext::drawPaint(const GrPaint& origPaint) {
// produce a correct result for some perspective matrices.
if (!this->getMatrix().hasPerspective()) {
if (!fViewMatrix.invert(&inverse)) {
- GrPrintf("Could not invert matrix\n");
+ SkDebugf("Could not invert matrix\n");
return;
}
inverse.mapRect(&r);
} else {
if (!am.setIdentity(this, paint.writable())) {
- GrPrintf("Could not invert matrix\n");
+ SkDebugf("Could not invert matrix\n");
return;
}
}
@@ -661,8 +661,8 @@ static void setStrokeRectStrip(SkPoint verts[10], SkRect rect,
}
static inline bool is_irect(const SkRect& r) {
- return SkScalarIsInt(r.fLeft) && SkScalarIsInt(r.fTop) &&
- SkScalarIsInt(r.fRight) && SkScalarIsInt(r.fBottom);
+ return SkScalarIsInt(r.fLeft) && SkScalarIsInt(r.fTop) &&
+ SkScalarIsInt(r.fRight) && SkScalarIsInt(r.fBottom);
}
static bool apply_aa_to_rect(GrDrawTarget* target,
@@ -673,7 +673,7 @@ static bool apply_aa_to_rect(GrDrawTarget* target,
if (!target->getDrawState().canTweakAlphaForCoverage() &&
target->shouldDisableCoverageAAForBlend()) {
#ifdef SK_DEBUG
- //GrPrintf("Turning off AA to correctly apply blend.\n");
+ //SkDebugf("Turning off AA to correctly apply blend.\n");
#endif
return false;
}
@@ -800,7 +800,7 @@ void GrContext::drawRect(const GrPaint& paint,
GrDrawTarget::AutoReleaseGeometry geo(target, worstCaseVertCount, 0);
if (!geo.succeeded()) {
- GrPrintf("Failed to get space for vertices!\n");
+ SkDebugf("Failed to get space for vertices!\n");
return;
}
@@ -916,7 +916,7 @@ void GrContext::drawVertices(const GrPaint& paint,
size_t VertexStride = drawState->getVertexStride();
if (sizeof(SkPoint) != VertexStride) {
if (!geo.set(target, vertexCount, 0)) {
- GrPrintf("Failed to get space for vertices!\n");
+ SkDebugf("Failed to get space for vertices!\n");
return;
}
void* curVertex = geo.vertices();
@@ -1233,7 +1233,7 @@ void GrContext::internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath&
if (NULL == pr) {
#ifdef SK_DEBUG
- GrPrintf("Unable to find path renderer compatible with path.\n");
+ SkDebugf("Unable to find path renderer compatible with path.\n");
#endif
return;
}
@@ -1619,7 +1619,7 @@ GrDrawTarget* GrContext::prepareToDraw(const GrPaint* paint,
#if GR_DEBUG_PARTIAL_COVERAGE_CHECK
if ((paint->hasMask() || 0xff != paint->fCoverage) &&
!fDrawState->couldApplyCoverage(fGpu->caps())) {
- GrPrintf("Partial pixel coverage will be incorrectly blended.\n");
+ SkDebugf("Partial pixel coverage will be incorrectly blended.\n");
}
#endif
// Clear any vertex attributes configured for the previous use of the
« no previous file with comments | « src/gpu/GrBitmapTextContext.cpp ('k') | src/gpu/GrDefaultPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698