| Index: include/gpu/GrSurface.h
|
| diff --git a/include/gpu/GrSurface.h b/include/gpu/GrSurface.h
|
| index 24e2dfcb8487f6e7cbbd762fb3349e8bbd45d6bf..ac5c5fa1bbcd4bddf3db7e9df7d5c7351a5859cf 100644
|
| --- a/include/gpu/GrSurface.h
|
| +++ b/include/gpu/GrSurface.h
|
| @@ -33,8 +33,7 @@ public:
|
| /**
|
| * 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);
|
|
|