diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp index 0700353cf..07ffe012c 100644 --- a/src/core/SkDraw.cpp +++ b/src/core/SkDraw.cpp @@ -1114,7 +1114,7 @@ void SkDraw::drawPath(const SkPath& origSrcPath, const SkPaint& origPaint, go ahead and treat it as if it were, so that subsequent code can go fast. */ static bool just_translate(const SkMatrix& matrix, const SkBitmap& bitmap) { -#ifdef SK_IGNORE_TREAT_AS_SPRITE +#ifdef SK_IGNORE_TRANS_CLAMP_FIX SkMatrix::TypeMask mask = matrix.getType(); if (mask & (SkMatrix::kAffine_Mask | SkMatrix::kPerspective_Mask)) { @@ -1132,7 +1132,9 @@ static bool just_translate(const SkMatrix& matrix, const SkBitmap& bitmap) { // if we got here, we're either kTranslate_Mask or identity return true; #else - return SkTreatAsSpriteFilter(matrix, bitmap.width(), bitmap.height()); + unsigned bits = 0; // TODO: find a way to allow the caller to tell us to + // respect filtering. + return SkTreatAsSprite(matrix, bitmap.width(), bitmap.height(), bits); #endif }