aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkAAClip.cpp
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/SkAAClip.cpp
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/SkAAClip.cpp')
-rw-r--r--src/core/SkAAClip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkAAClip.cpp b/src/core/SkAAClip.cpp
index c0707c5b0c..b22b8ebebb 100644
--- a/src/core/SkAAClip.cpp
+++ b/src/core/SkAAClip.cpp
@@ -704,7 +704,7 @@ bool SkAAClip::setEmpty() {
}
bool SkAAClip::setRect(const SkIRect& bounds) {
- if (!SkRectPriv::PositiveDimensions(bounds)) {
+ if (bounds.isEmpty()) {
return this->setEmpty();
}