commit | 13a7eee2504e7deb0e27ed3e69a787696d57b037 | [log] [tgz] |
---|---|---|
author | robertphillips <robertphillips@google.com> | Wed Aug 31 15:06:24 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Aug 31 15:06:24 2016 -0700 |
tree | be4bda801aa399016befedd2d288fe2f79300206 | |
parent | 1da3ecd07836a72c9225c896d2516625906b4bda [diff] [blame] |
Flush some non-substantive Ganesh changes Split out of: https://codereview.chromium.org/2215323003/ (Start using RenderTargetProxy (omnibus)) GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2299523004 Review-Url: https://codereview.chromium.org/2299523004
diff --git a/include/gpu/GrSurface.h b/include/gpu/GrSurface.h index 24e2dfc..ac5c5fa 100644 --- a/include/gpu/GrSurface.h +++ b/include/gpu/GrSurface.h
@@ -33,8 +33,7 @@ /** * Helper that gets the width and height of the surface as a bounding rectangle. */ - void getBoundsRect(SkRect* rect) const { rect->setWH(SkIntToScalar(this->width()), - SkIntToScalar(this->height())); } + SkRect getBoundsRect() const { return SkRect::MakeIWH(this->width(), this->height()); } GrSurfaceOrigin origin() const { SkASSERT(kTopLeft_GrSurfaceOrigin == fDesc.fOrigin || kBottomLeft_GrSurfaceOrigin == fDesc.fOrigin);