aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/fonts
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-04-11 14:30:17 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-11 19:40:57 +0000
commit1f275851ecd6981aebf2349b1c21a52cd106bd8f (patch)
tree73e488622f149d7fdbe1244329363a8646fb27a0 /tools/fonts
parentf441cfc5dfec7afe8f2d67785bb88b696f393f4c (diff)
remove unused/dumb methods from SkRect
Bug: skia: Change-Id: I407dc94256a347c7a9343b75a5af43c4294891d3 Reviewed-on: https://skia-review.googlesource.com/119360 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'tools/fonts')
-rw-r--r--tools/fonts/SkRandomScalerContext.cpp3
1 files changed, 2 insertions, 1 deletions
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;