From 1f275851ecd6981aebf2349b1c21a52cd106bd8f Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Wed, 11 Apr 2018 14:30:17 -0400 Subject: remove unused/dumb methods from SkRect Bug: skia: Change-Id: I407dc94256a347c7a9343b75a5af43c4294891d3 Reviewed-on: https://skia-review.googlesource.com/119360 Commit-Queue: Mike Reed Reviewed-by: Yuqian Li --- tools/fonts/SkRandomScalerContext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/fonts') diff --git a/tools/fonts/SkRandomScalerContext.cpp b/tools/fonts/SkRandomScalerContext.cpp index 24dcb02feb..a8a8821a45 100644 --- a/tools/fonts/SkRandomScalerContext.cpp +++ b/tools/fonts/SkRandomScalerContext.cpp @@ -12,6 +12,7 @@ #include "SkMakeUnique.h" #include "SkPath.h" #include "SkRandomScalerContext.h" +#include "SkRectPriv.h" class SkDescriptor; @@ -107,7 +108,7 @@ void SkRandomScalerContext::generateMetrics(SkGlyph* glyph) { // just use devPath const SkIRect ir = devPath.getBounds().roundOut(); - if (ir.isEmpty() || !ir.is16Bit()) { + if (ir.isEmpty() || !SkRectPriv::Is16Bit(ir)) { glyph->fLeft = 0; glyph->fTop = 0; glyph->fWidth = 0; -- cgit v1.2.3