fix #if to #ifdef for SK_DEBUG

fix the chrome build

R=mtklein@google.com
TBR=mtklein
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Author: caryclark@google.com

Review URL: https://codereview.chromium.org/495453003
This commit is contained in:
caryclark 2014-08-20 05:24:29 -07:00 committed by Commit bot
parent 5b65357799
commit 9a657fa0b4

View File

@ -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;