aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRectPriv.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-01-09 11:31:53 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-09 16:54:52 +0000
commita766ca9af12e1175cfb01f4b516802da9197ba78 (patch)
tree738b9fa0c40ce361a45c6b2d49353f9b9431219d /src/core/SkRectPriv.h
parent99578d24c0abd5b0e4fa2fc40b44fbec0c2bd627 (diff)
use 64bit math to compute is a rect is empty
Will work next to try to make isEmpty() private Bug: skia:7470 Bug:799715 Change-Id: I7b43028ecd86dca68e0c67225712516d2f2f88a2 Reviewed-on: https://skia-review.googlesource.com/92620 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/core/SkRectPriv.h')
-rw-r--r--src/core/SkRectPriv.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/core/SkRectPriv.h b/src/core/SkRectPriv.h
index 01d184dce6..8b663ab3dd 100644
--- a/src/core/SkRectPriv.h
+++ b/src/core/SkRectPriv.h
@@ -12,14 +12,6 @@
class SkRectPriv {
public:
- // Returns true iff width and height are positive. Catches inverted, empty, and overflowing
- // (way too big) rects. This is used by clients that want a non-empty rect that they can also
- // actually use its computed width/height.
- //
- static bool PositiveDimensions(const SkIRect& r) {
- return r.width() > 0 && r.height() > 0;
- }
-
static SkRect MakeLargestS32() {
const int32_t ihalf = SK_MaxS32 >> 1;
const SkScalar half = SkIntToScalar(ihalf);