diff options
Diffstat (limited to 'include/gpu/GrSurface.h')
-rw-r--r-- | include/gpu/GrSurface.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/gpu/GrSurface.h b/include/gpu/GrSurface.h index 24e2dfcb84..ac5c5fa1bb 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); |