commit | 3e8e34e944df5dd30cd909cde69fc114c5634607 | [log] [tgz] |
---|---|---|
author | Herb Derby <herb@google.com> | Thu Jun 20 15:16:13 2019 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Jun 21 15:58:41 2019 +0000 |
tree | fa44d07cd2c0a11ff37334c8429ece7b89188e92 | |
parent | 0426c38daa64627258061f7c049343924792701e [diff] [blame] |
Start using new APIs for bounds and glyph lookup Change-Id: I2fa8048b95a48e61c33223257880c2ce8414a5e5 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/222507 Commit-Queue: Herb Derby <herb@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
diff --git a/src/gpu/geometry/GrRect.h b/src/gpu/geometry/GrRect.h index 2a3e72b..ffded09 100644 --- a/src/gpu/geometry/GrRect.h +++ b/src/gpu/geometry/GrRect.h
@@ -33,6 +33,12 @@ return r; } + static GrIRect16 SK_WARN_UNUSED_RESULT Make(const SkIRect& ir) { + GrIRect16 r; + r.set(ir); + return r; + } + int width() const { return fRight - fLeft; } int height() const { return fBottom - fTop; } int area() const { return this->width() * this->height(); }