aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
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 /gm
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 'gm')
-rw-r--r--gm/windowrectangles.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gm/windowrectangles.cpp b/gm/windowrectangles.cpp
index 931a154df4..c427b1af27 100644
--- a/gm/windowrectangles.cpp
+++ b/gm/windowrectangles.cpp
@@ -277,8 +277,9 @@ void WindowRectanglesMaskGM::fail(SkCanvas* canvas) {
canvas->clipRect(SkRect::Make(kCoverRect));
canvas->clear(SK_ColorWHITE);
- canvas->drawString(errorMsg, SkIntToScalar(kCoverRect.centerX()),
- SkIntToScalar(kCoverRect.centerY() - 10), paint);
+
+ canvas->drawString(errorMsg, SkIntToScalar((kCoverRect.left() + kCoverRect.right())/2),
+ SkIntToScalar((kCoverRect.top() + kCoverRect.bottom())/2 - 10), paint);
}
DEF_GM( return new WindowRectanglesMaskGM(); )