aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRectPriv.h
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 /src/core/SkRectPriv.h
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 'src/core/SkRectPriv.h')
-rw-r--r--src/core/SkRectPriv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/SkRectPriv.h b/src/core/SkRectPriv.h
index 3bf90f8be7..d817591bb9 100644
--- a/src/core/SkRectPriv.h
+++ b/src/core/SkRectPriv.h
@@ -53,6 +53,11 @@ public:
return SkFitsInFixed(r.fLeft) && SkFitsInFixed(r.fTop) &&
SkFitsInFixed(r.fRight) && SkFitsInFixed(r.fBottom);
}
+
+ static bool Is16Bit(const SkIRect& r) {
+ return SkTFitsIn<int16_t>(r.fLeft) && SkTFitsIn<int16_t>(r.fTop) &&
+ SkTFitsIn<int16_t>(r.fRight) && SkTFitsIn<int16_t>(r.fBottom);
+ }
};