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

Unified Diff: src/core/SkRecordDraw.cpp

Issue 495453003: fix #if to #ifdef for SK_DEBUG (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecordDraw.cpp
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp
index 613c2c0dd4e759fff874a54a1e08ca8e357e3b3a..a1c148a547e8d5e66a54f46b0ff04f5c2fa79b38 100644
--- a/src/core/SkRecordDraw.cpp
+++ b/src/core/SkRecordDraw.cpp
@@ -312,13 +312,13 @@ private:
}
static void AdjustTextForFontMetrics(SkRect* rect, const SkPaint& paint) {
-#if SK_DEBUG
+#ifdef SK_DEBUG
SkRect correct = *rect;
#endif
const SkScalar yPad = 1.5f * paint.getTextSize(), // In practice, this seems to be enough.
xPad = 4.0f * yPad; // Hack for very wide Github logo font.
rect->outset(xPad, yPad);
-#if SK_DEBUG
+#ifdef SK_DEBUG
SkPaint::FontMetrics metrics;
paint.getFontMetrics(&metrics);
correct.fLeft += metrics.fXMin;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698