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:
parent
5b65357799
commit
9a657fa0b4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user